diff --git a/server/build/webpack.js b/server/build/webpack.js index a767d31af9..cf4404ebfa 100644 --- a/server/build/webpack.js +++ b/server/build/webpack.js @@ -31,6 +31,9 @@ export default async function createCompiler (dir, { hotReload = false } = {}) { const nodeModulesDir = join(__dirname, '..', '..', '..', 'node_modules') const plugins = [ + new webpack.DefinePlugin({ + 'process.env.NODE_ENV': JSON.stringify('production') + }), new WriteFilePlugin({ exitOnErrors: false, log: false,