|
|
|
|
|
by sayurichick
3212 days ago
|
|
i work in react, so i just create a <componentname>.css file in the same directory and `import componentname.css` in my component. I get the advantage of using either Sass or less or postcss with webpack and I get all the features as expected from this workflow. The only thing I don't have is that unused class feature with my workflow, but I can probably find a postcss plugin which handles that. I don't see any advantage of this library for me? |
|
You're unlikely to find a postcss plugin that can eliminate dead code. Unless it can analyse your CSS in the context of your markup, it has no way of knowing what's safe to remove. For that, you need statically analyzable single file components.