Laravel Elixir 包含更少的路径
Laravel Elixir include Paths for less
我正在尝试 Laravel Elixir,我想像在 Elixir saass 中那样使用 includePaths 包含引导程序较少的文件
var paths = {
'bootstrap': './vendor/bower_components/bootstrap-sass-official/assets/'
}
elixir(function(mix) {
mix.sass("style.scss", 'public/assets/css/', {includePaths: [paths.bootstrap + 'stylesheets/']})
});
是否有类似的东西可以少花钱?
根据https://laracasts.com/discuss/channels/general-discussion/bower-bootstrap-less-and-elixir:
elixir(function(mix) {
mix.less('application.less', 'public/css', {
paths: __dirname + '/vendor/bower_components/bootstrap/less'
});
});
我正在尝试 Laravel Elixir,我想像在 Elixir saass 中那样使用 includePaths 包含引导程序较少的文件
var paths = {
'bootstrap': './vendor/bower_components/bootstrap-sass-official/assets/'
}
elixir(function(mix) {
mix.sass("style.scss", 'public/assets/css/', {includePaths: [paths.bootstrap + 'stylesheets/']})
});
是否有类似的东西可以少花钱?
根据https://laracasts.com/discuss/channels/general-discussion/bower-bootstrap-less-and-elixir:
elixir(function(mix) {
mix.less('application.less', 'public/css', {
paths: __dirname + '/vendor/bower_components/bootstrap/less'
});
});