【发布时间】:2015-10-28 11:36:06
【问题描述】:
我已经安装了 ember-cli-less 并包含了
@import "../../bower_components/bootstrap/less/bootstrap"
在我的样式/app.less 文件中
我在 ember-cli-build.js 文件中有以下内容:
app.import('bower_components/bootstrap/dist/fonts/glyphicons-halflings-regular.eot', {
destDir: 'fonts'
});
app.import('bower_components/bootstrap/dist/fonts/glyphicons-halflings-regular.ttf', {
destDir: 'fonts'
});
app.import('bower_components/bootstrap/dist/fonts/glyphicons-halflings-regular.svg', {
destDir: 'fonts'
});
app.import('bower_components/bootstrap/dist/fonts/glyphicons-halflings-regular.woff', {
destDir: 'fonts'
});
app.import('bower_components/bootstrap/dist/fonts/glyphicons-halflings-regular.woff2', {
destDir: 'fonts'
});
app.import('bower_components/bootstrap/dist/js/bootstrap.js');
return app.toTree();
现在我想从 Wrapbootstrap 中获取一个主题并将其包含在我的项目中。
还有另一个指向类似问题的链接:Recommended way to include bootstrap library in Ember.JS ember-cli App 但是 - 它似乎主要集中在设置引导程序上 - 添加主题并没有太大作用。
【问题讨论】: