SASS with Ember CLI addons

删除回忆录丶 提交于 2019-12-01 21:35:37

问题


I'd like to know how I can use SASS within an Ember-CLI addon?

I have my styles in /app/styles folder, but I'm not sure that's the right location to have them. I have broccoli-sass installed in my addon project, my Dummy test website compiles properly the scss files when I include my folder in /tests/dummy/app/styles/app.scss.

@import 'app/styles/app.scss';

But I don't know how I can compile the scss files to go into the /dist/assets/vendors.css, which is the file loaded by projects using this addon.


回答1:


OK I just found out the solution

The style folder needs to be in /addon/styles instead of /app/styles, and the root file should be called addon.scss



来源:https://stackoverflow.com/questions/29544544/sass-with-ember-cli-addons

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!