-
Notifications
You must be signed in to change notification settings - Fork 8
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
used CSS classes are purged #48
Comments
I found same issue. |
trying to find a solution to this myself. i'll let you know if i get anything working. |
same issue with me |
1 task
I'm having the same problem. People seem to have that problem even in the base component: FullHuman/purgecss#491 |
Next.js - same issue. React-bootstrap is adding dynamic? classes that purgeCSS is not handling. next.config.js
...
plugins: [
"postcss-flexbugs-fixes",
[
"postcss-preset-env",
{
autoprefixer: { flexbox: "no-2009" },
stage: 3,
features: { "custom-properties": false },
},
],
[
"@fullhuman/postcss-purgecss",
{
content: [
"./components/**/*.{js,jsx,ts,tsx}",
"./pages/**/*.{js,jsx,ts,tsx}",
],
css: ["./styles/**/*.{css,scss}"],
defaultExtractor: (content) => content.match(/[\w-/:]+(?<!:)/g) || [],
safelist: {
standard: ["html", "body", "btn"],
deep: [/^col/, /^navbar/, /^nav/],
},
},
],
],
... |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I'm using next-purgecss with @zeit/next-scss and the result css is purget "too much".
My sccs structure is:
@import "variables";
@import "../../node_modules/bootstrap/scss/bootstrap";
@import "base";
...
I think that the result does not contain all of bootstrap classes defined by functions that generates classes like "justify-content-lg-end" atc. So after purging all bootstrap classes not working.
The text was updated successfully, but these errors were encountered: