preboot / angularjs-webpack

A complete, yet simple, starter for AngularJS using webpack
MIT License
1.71k stars 658 forks source link

Global css don't get applied #27

Closed plakak closed 8 years ago

plakak commented 8 years ago

Hi,

When I put my sass files (or even CSS files) in src/style, and then run npm style no styles are getting applied to the whole project. Is there a special name/way I should do that? I don't want to apply styles in components, just get all styles from src/style. I'm sure I'm doing something wrong, but can't where the problem is...

Foxandxss commented 8 years ago

You need to import them once (main file or something). Webpack has no way of knowing that you want them unless you import them.

plakak commented 8 years ago

Ah, thank you! Worked like a charm.