Replies: 1 comment 1 reply
-
You can pass contentFunction in the purge css option. The doc says you can pass PostCSS options listed here. module.exports = {
purge: {
content: ['./src/**/*.html'],
// These options are passed through directly to PurgeCSS
options: {
contentFunction: (sourceFile) => {
console.log({ sourceFile });
}
},
},
// ...
} I am sorry, I don't know how to use |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hey there,
We've seen in the documentation of postcss-purgecss that is supports contentFunction.
Our question is how can we use this property throught tailwind config? We would need this so we could purge the css individually for every web component.
Thanks for your reply in advance.
Beta Was this translation helpful? Give feedback.
All reactions