我有一个简单的脚本来组合样式:
elixir(function(mix) {
mix.styles([
'bootstrap.min.css',
'font-awesome.css',
'animate.css',
'style.css'
], "public/frontend/css");
});
我所有的 css 文件都在public/frontend/css
目录中,我将styles
函数的第二个参数设置为该基础,但如果我运行,gulp
我得到:
[19:18:22] Starting 'default'...
[19:18:22] Starting 'styles'...
[19:18:22] Merging: resources/css/css/bootstrap.min.css,resources/css/public/frontend/css/font-awesome.css,resources/css/public/frontend/css/animate.css,resources/css/public/frontend/css/style.css
[19:18:22] Finished 'default' after 196 ms
[19:18:22] File not found: resources/css/css/bootstrap.min.css
[19:18:22] File not found: resources/css/public/frontend/css/font-awesome.css
[19:18:22] File not found: resources/css/public/frontend/css/animate.css
[19:18:22] File not found: resources/css/public/frontend/css/style.css
[19:18:22] Finished 'styles' after 206 ms
所以它将基目录设置为resources/css
.
我该如何解决?