Skip to content

Commit ad49f88

Browse files
hmillisonAkryum
authored andcommitted
fix: Use NODE_ENV to determine if webpack should use production build instead of mode (#114)
1 parent 2434401 commit ad49f88

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/webpack.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ exports.chainWebpack = (webpackConfig) => {
1111
const target = process.env.VUE_CLI_SSR_TARGET
1212
if (!target) return
1313
const isClient = target === 'client'
14-
const isProd = process.env.VUE_CLI_MODE === 'production'
14+
const isProd = process.env.NODE_ENV === 'production'
1515

1616
// Remove unneeded plugins
1717
webpackConfig.plugins.delete('hmr')

0 commit comments

Comments
 (0)