proog / eleventy-plugin-purgecss Goto Github PK
View Code? Open in Web Editor NEWEleventy plugin that runs PurgeCSS after each build
Eleventy plugin that runs PurgeCSS after each build
Can this be used with the 11ty Vite plugin?
It doesn't appear to be purging unused css.
Hello,
I am using 11ty 3 alpha5 with ESM (type: "module") mode enabled. Doesn't seem like this works with it even if the config file is in ESM:
[11ty] Error loading the config file require() of ES Module ...\11ty\purgecss.config.js from ...\11ty\node_modules\purgecss\lib\purgecss.js not supported.
[11ty] Instead change the require of purgecss.config.js in ...\11ty\node_modules\purgecss\lib\purgecss.js to a dynamic import() which is available in all CommonJS modules. (via Error)
Currently plugin causes issues with NPM:
npm ERR! Could not resolve dependency:
npm ERR! peer @11ty/eleventy@">=0.11.1" from [email protected]
[11ty] <css input>:538:9: Unknown word (via CssSyntaxError) [11ty] Original error stack trace: CssSyntaxError: <css input>:538:9: Unknown word
I am getting this error. Using @11ty/eleventy": "^1.0.1
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.