castillo-io / angular-css

CSS on-demand for AngularJS [Looking for New Maintainers]
http://castillo-io.github.io/angular-css/#/
MIT License
470 stars 86 forks source link

webpack #66

Open tianlizhao opened 8 years ago

tianlizhao commented 8 years ago

how in webpack use angular-css

alexcastillo commented 8 years ago

Hi @275287902

I have't tried webpack and angular-css together. What is your webpack setup like?

edenworky commented 8 years ago

@275287902 Why would you want to use angular-css with Webpack? Webpack already has tools for this.

If you still want to for whatever reason, #31 will let you do this with the default require(), but you can just use file-loader. That's what it's there for.

ShawnMercado commented 6 years ago

I know this is old, but file-loader doesn't work if you have anything within your css file that needs to be resolved by webpack first (such as background image url).