postcss-uncss
postcss-uncss copied to clipboard
Use uncss as a postcss plugin
Hi, I've setup my gulp build to use gulp-postcss and postcss-uncss (8.0.0 and 0.16.1 respectively). When trying to run uncss I get the following error: [16:07:44] Using gulpfile C:\xampp\htdocs\site\gulpfile.js [16:07:44]...
I've tried many ways, but none of them works. ```js module.exports = ({env}) => ({ plugins: { 'postcss-uncss':{ "html": ['http://localhost:3456'], // html: ['src/**/*.html'], // html: ['src/index.html'], }, } }); ```...
https://medium.com/@ole.ersoy/filtering-unused-css-selectors-with-postcss-3504002b7c82 In case you wanted to include it with the documentation.
The option _htmlroot_ supported by gulp-uncss seems to be missing. It is required for proper processing of relative links to javascript code within the html files.