Ember-cli bootstrap-sass无法正确编译。

时间:2015-04-24 21:08:00

标签: ember-cli bootstrap-sass

ember版本:0.2.3 节点:0.12.2 npm:2.7.6

我运行了命令 ember new app cd app npm install --save-dev ember-cli-bootstrap-sass mv app/styles/app.css app/styles/app.scss 添加第@import: 'bootstrap';行 跑 ember serve 当应用程序编译时,我得到dist/assets/app.scss(而不是app.css),它包含的所有内容都是@import: 'bootstrap';。 我错过了什么? "broccoli-asset-rev": "^2.0.2", "ember-cli": "0.2.3", "ember-cli-app-version": "0.3.3", "ember-cli-babel": "^5.0.0", "ember-cli-bootstrap-sass": "^0.2.11", "ember-cli-content-security-policy": "0.4.0", "ember-cli-dependency-checker": "0.0.8", "ember-cli-htmlbars": "0.7.4", "ember-cli-ic-ajax": "0.1.1", "ember-cli-inject-live-reload": "^1.3.0", "ember-cli-qunit": "0.3.10", "ember-cli-uglify": "1.0.1", "ember-data": "1.0.0-beta.16.1", "ember-export-application-global": "^1.0.2"

1 个答案:

答案 0 :(得分:2)

该软件包提供SASS格式的Bootstrap。您的应用没有SASS预处理器,您也必须添加它。

您可以使用ember-cli-sass,我相信还有其他选择。