We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4d2892d commit 38d860aCopy full SHA for 38d860a
purgecss/index.js
@@ -1,4 +1,3 @@
1
-const isHotReloaded = process.argv.includes('serve');
2
const postcss = require('postcss');
3
4
class TailwindExtractor {
@@ -18,7 +17,7 @@ let config = {
18
17
};
19
20
module.exports = postcss.plugin('tailwind-purgecss', function(opts) {
21
- if (isHotReloaded) return () => {};
+ if (process.env.NODE_ENV !== 'production') return () => {};
22
const purgecss = require('@fullhuman/postcss-purgecss');
23
return purgecss(Object.assign(config, opts));
24
});
0 commit comments