-
Notifications
You must be signed in to change notification settings - Fork 61
Integration with webpack? #58
Comments
Depends, what kind of integration are you looking for? You wont have to compile anything and linting can just be done from the commandline with stylelint. |
I meant like |
I think this should do what you're looking for: https://www.npmjs.com/package/stylelint-webpack-plugin It accepts a regular stylelint config, so you should be able to define the processor there. I'll close this as I think this should solve it, but please let me know if this doesn't work as expected. |
Yeah @ismay I looked at that one already and I feel like it's a quite unnatural implementation (of top of it not working at all for styled components as it looks for .css (or scss and the other extensions) files, not js). It's a plugin not a loader which means it kinda does something very separate from Webpack. I guess one could write a plugin that simply just runs something similar to the So yeah, I may write a small package, it seems to be quite light weight. |
Ah ok, I didn't take a thorough look, but yeah that's not helpful then.
Cool! Would be nice! Probably worth adding it to the docs here if you're publishing it. |
That was also the plan! :). |
Though I also don't really like the way the deprecated package outputs errors and stuff. But yeah I'll definitely look at it :) |
Hey, are there any good solutions for integration with webpack yet? Can't find anything suitable online as it's all meant for scss etc.
Otherwise I might build one.
The text was updated successfully, but these errors were encountered: