You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If I run npm run build the console shows the same output PurgeCSS is not enabled because you are in dev mode.
> cross-env NODE_ENV=production nuxt build
i Production build 13:23:20
start Loading module nuxt-purgecss 13:23:20
i PurgeCSS is not enabled because you are in dev mode nuxt-purgecss 13:23:20
√ Builder initialized 13:23:20
√ Nuxt files generated
Same issue, when I added this to nuxt.config.js:
purgeCSS: {
enabled: true
}
The text was updated successfully, but these errors were encountered:
I similarly have this issue, it appears to have been broken in this commit: 9fe24f7 where now purgeCSS can only be enabled in any env if purgeCSSinDev is true. This is easily reproducible with the latest versions of each nuxt and @nuxtjs/tailwindcss.
I created a nuxt app with
npx create-nuxt-app <project-name>
. I choosedtailwind
as the css framework. Here is my defaultnuxt.config.js
If I used
npm run build
the console output showsPurgeCSS is not enabled because you are in dev mode
.Next I added
cross-env
to the project and added the cross-env command to thepackage.json
:If I run
npm run build
the console shows the same outputPurgeCSS is not enabled because you are in dev mode
.Same issue, when I added this to nuxt.config.js:
The text was updated successfully, but these errors were encountered: