-
-
Notifications
You must be signed in to change notification settings - Fork 10
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
PurgeCSS? #18
Labels
documentation
Improvements or additions to documentation
Comments
I tried with PostCSS as well.
postcss.config.js
|
👋 Hi @simplerethink, I am using PurgeCSS now and this is a section from my configuration. I'm using the package eleventyConfig.addPlugin(EleventyVitePlugin, {
assetsInclude: ['**/rss.xml'],
viteOptions: {
clearScreen: true,
appType: "mpa",
css: {
postcss : {
plugins: [
purgeCss({
content: [
// for development
'./_site/**/*.html',
// for production builds
'./.11ty-vite/**/*.html'
],
safelist: {
deep: [/plyr.*/]
}
})
]
}
},
.... hope this helps. |
KiwiKilian
added
documentation
Improvements or additions to documentation
and removed
education
labels
Jun 26, 2024
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
What's the best way to purge unused css with 11ty vite and rollup?
I can't seem to get the output to actually purge unused css.
The text was updated successfully, but these errors were encountered: