2

我正在尝试 Laravel Elixir,我想在 Elixir saass 中使用 includePaths 包含 bootsrap 较少的文件

var paths = {
    'bootstrap': './vendor/bower_components/bootstrap-sass-official/assets/'
}

elixir(function(mix) {
    mix.sass("style.scss", 'public/assets/css/', {includePaths: [paths.bootstrap + 'stylesheets/']})
});

有没有类似的东西少?

4

1 回答 1

2

根据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'
    });
});
于 2015-02-26T19:30:07.410 回答