This repository has been archived by the owner on Dec 25, 2018. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 37
Not removing unused classes properly #138
Comments
Ok, so... Messing around I've found that with this config: new PurifyCSSPlugin({
// Give paths to parse for rules. These should be absolute!
paths: glob.sync(`${paths.appSrc}/**/*`),
moduleExtensions: ['.css', '.html', '.js'],
}), It removes things, but removes way too much: .td__unused-class__l3_t2 {
font-size: 32px;
background: red;
}
.td__App-header__3iH8L {
background-color: #222;
height: 150px;
padding: 20px;
color: #fff;
} And the damned |
@zaguiini hi, did you solve it? i met the same issue.... |
the version of them are purify-css 1.2.5 and purifycss-webpack 0.7.0. |
No :/ |
en. thx, i also use the example in the project, and the example code doesn't remove unused class... |
This plugins is useless when using css modules. It includes everything. |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Versions:
"purify-css": "^1.2.5", "purifycss-webpack": "^0.7.0"
I'm trying to purify CSS modules, but unused classes are being exported as well. Yes, I did everything that is stated in the README:
weback.config.js
App.css file:
App.js:
But when I run the build, I get the
.unused-class
exported as well, even though I'm obviously not using it 😖main.css (output):
Is something wrong? Is that expected behavior?
The text was updated successfully, but these errors were encountered: