Where should I put styles in ember-cli addon?


#1

I create a addon em-calendar:

{{em-calendar}}

My current solution is use bower to install my registered package, then import in index.js:

app.import(app.bowerDirectory + '/coreweb-css/css/calendar-theme.css');

But that’s not best solution, if the styles can be put in addon, and they can automatic be included in the project that use this addon.

Following the guides http://www.ember-cli.com/extending/#developing-addons-and-blueprints, I put the styles in blueprints/__addon_name__/files/app/styles, but it didn’t work for me. I use compass, and the ember-cli-compass-compiler always compile the folder ‘app/styles’.