Questions tagged [purgecss]

PurgeCSS analyzes your content and your CSS files. Then it matches the selectors used in your files with the one in your content files. It removes unused selectors from your CSS, resulting in smaller CSS files.

5 questions
1
vote
0 answers

PurgeCss not working in Nextjs 13 version

I am trying to reduce size of css in my Nextjs project. I am following https://purgecss.com/guides/next.html this guide. following are the content of my style.css @import url('/assets/css/bootstrap.min.css'); @import…
Manwal
  • 23,450
  • 12
  • 63
  • 93
0
votes
1 answer

gatsby purge css plugin not installing

To merge the css in my gatsby project I was trying to install a plugin called purge css but while installing it gives the error and stops `evo02@evo02:/var/www/html/Evolvan (staging fresh without edits)/evolvan.com-gatsby$ npm install…
0
votes
1 answer

why I can't update my css file via purgecss?

I'm implementing a mini CSS library with SASS and I want to purge that, currently I'm using purgecss and I have no issue with that but one problem is that when I add a class to my html from my CSS library, that specific class doesn't get included in…
0
votes
0 answers

How can I resolve the 'Critical dependency: the request of a dependency is an expression' warning in webpack when using PurgeCSS?

In the webpack build process, seeing this warning WARNING in ./node_modules/purgecss/lib/purgecss.es.js 397:18-28 Critical dependency: the request of a dependency is an expression @ ./src/utils/renderPage.js @ ./src/server.js In the renderPage…
Victor
  • 1
  • 2
0
votes
0 answers

Adding @fullhuman/postcss-purgecss in postcss.config.js breaks the css next.js

My project is built with react(^18.2.0) and next JS(^13.1.6). I was reviewing my website performance on https://pagespeed.web.dev/ and got a recommendation to remove unused CSS. I tried configuring postcss.config.js and adding…
Jyoti Duhan
  • 988
  • 1
  • 16
  • 26