2015-04-24 70 views
0

燼版本:0.2.3 節點:0.12.2 NPM:2.7.6Ember-cli bootstrap-sass無法正確編譯。

我跑的命令 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"

回答

2

該軟件包提供SASS格式的Bootstrap。您的應用沒有SASS預處理器,您也必須添加該預處理器。

您可以使用ember-cli-sass,我敢肯定還有其他的選擇。