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 977d605 commit 1dc2526Copy full SHA for 1dc2526
lib/module.js
@@ -29,6 +29,7 @@ module.exports = async function (moduleOptions) {
29
// This hooks is called only for `nuxt dev` and `nuxt build` commands
30
this.nuxt.hook('build:before', () => {
31
// Fix issue with postCSS that needs process.env.NODE_ENV
32
+ /* istanbul ignore if */
33
if (!this.options.dev && !process.env.NODE_ENV) {
34
process.env.NODE_ENV = 'production'
35
}
0 commit comments