我想在laravel-mix构建期间或之后删除临时构建文件。
这是我目前拥有的一些代码,但是A = [0.6, 0.9, 1.2, 1.5, 2, 2.5, 3, 4, 4.5]
B = [0.6, 1.7, 3, 4.5]
C = [next(b for b in B if b >= a) for a in A]
print(C) # -> [0.6, 1.7, 1.7, 1.7, 3, 3, 3, 4.5, 4.5]
无法正常工作:
ul li a img {
display:none;
}
ul li:hover a img {
display:inline-block;
}
答案 0 :(得分:1)
我能够通过在<i>UIApplication.shared.open(url, options: [:], completionHandler: {
(success) in
if success{
DispatchQueue.main.async {
tableView.reloadData()
}
}
})</i>
返回的del
中运行then()
来解决此问题:
mix.styles()
const mix = require('laravel-mix');
const del = require('del');
// compile sass into temp css file
mix.sass('resources/stylesheets/style.scss', 'public/css/temp.css');
// compile css
mix.styles([
// other css stylesheets here...
'public/css/temp.css' // include temp css file
], 'public/css/admin.min.css').then(() => {
del('public/css/temp.css'); // deletes the temp file
});
同样适用:
mix.scripts()