Skip to content

Commit e763dc7

Browse files
nodeginnkzawa
authored andcommitted
1 parent dbc125f commit e763dc7

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

server/build/webpack.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,9 @@ export default async function createCompiler (dir, { hotReload = false } = {}) {
3131
const nodeModulesDir = join(__dirname, '..', '..', '..', 'node_modules')
3232

3333
const plugins = [
34+
new webpack.DefinePlugin({
35+
'process.env.NODE_ENV': JSON.stringify('production')
36+
}),
3437
new WriteFilePlugin({
3538
exitOnErrors: false,
3639
log: false,

0 commit comments

Comments
 (0)