When you have an existing ember-cli project and want to add bootstrapp-sass
ember install ember-cli-sass
bower install bootstrap-sass --save
Add sassOptions to the options while creating the app.
Import Bootstrap.js after app creation.
var EmberApp = require('ember-cli/lib/broccoli/ember-app');
module.exports = function(defaults) {
var app = new EmberApp(defaults, {
sassOptions: {
includePaths: [
'bower_components/bootstrap-sass/assets/stylesheets'
]
}
});
app.import('bower_components/bootstrap-sass/assets/javascripts/bootstrap.js');
return app.toTree();
};
Ember-cli initiates the main stylesheet as a .css file, we need to rename it to .scss You can find the generated stylesheet here: app/styles/app.css
Now add this to app.scss
@import "bootstrap";
@import "bootstrap/theme";
Now you can make use of Bootstrap in yoour app