【发布时间】:2015-03-01 16:08:48
【问题描述】:
我将 bootstrap-sass-official 添加到我的凉亭依赖项到 bower_components。
我以这种方式编译并添加了引导 css 文件到 public(在 gulpfile.js 中):
var paths = {
'bootstrap': 'bower_components/bootstrap-sass-official/assets/',
'jquery': 'bower_components/jquery/dist/'
};
elixir(function(mix) {
mix.sass('app.scss', null, {includePaths: [paths.bootstrap + 'stylesheets/']});
});
在app.scss 中有一行@import '_bootstrap';。并且 css 文件被编译并且它们可以工作。
如何向页面添加引导字体和脚本?
【问题讨论】:
-
你确定这个问题甚至与 Elixir 有关吗?
-
@OnorioCatenacci 我的意思是 Laravel Elixir:github.com/laravel/elixir
-
总是很高兴向您的解决方案的来源致敬,以供其他人阅读 - laravel-news.com/2014/10/setting-laravel-elixr-bootstrap
标签: twitter-bootstrap laravel-5 gulp bower laravel-elixir