mini-css-extract-plugin icon indicating copy to clipboard operation
mini-css-extract-plugin copied to clipboard

Support sideEffects: false

Open kentcdodds opened this issue 6 years ago • 2 comments

Hey friends :wave:

I've got a minimal example of what I'm trying to do here: https://github.com/kentcdodds/tree-shake-css

And I even have a video showing what I'm trying to accomplish here: youtube.com/watch?v=Q_F-c0LEp4I&t=749s&list=PLV5CVI1eNcJgCrPH_e6d57KRUTiDZgs0u

Basically I want to be able to not include css that is being imported by unused modules.

I think that's what #237 was supposed to be about?

Here are some more details: https://github.com/kentcdodds/tree-shake-css/issues/2

kentcdodds avatar Jan 22 '19 21:01 kentcdodds

@kentcdodds side effect it is part of webpack, you can disable sideEffect for all project.

alexander-akait avatar Jan 23 '19 09:01 alexander-akait

I know, but I believe that this package does not take that into account. Did you read through the issue and example repo?

kentcdodds avatar Jan 23 '19 15:01 kentcdodds