Skip to content
This repository was archived by the owner on Dec 9, 2021. It is now read-only.

Commit 43f19eb

Browse files
committed
make production default
1 parent 647a667 commit 43f19eb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

webpack.config.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ const RobotstxtPlugin = require('robotstxt-webpack-plugin').default;
99

1010
const PORT = process.env.PORT || 3000;
1111
const HOST = process.env.HOST || 'localhost';
12-
const NODE_ENV = process.env.NODE_ENV;
12+
const NODE_ENV = process.env.NODE_ENV || 'production';
1313
const isProduction = (NODE_ENV === 'production');
1414
const isDevelopment = (NODE_ENV === 'development');
1515

@@ -60,7 +60,7 @@ const config = {
6060
new ProgressBarPlugin(),
6161

6262
new webpack.DefinePlugin({
63-
'process.env.NODE_ENV': JSON.stringify(NODE_ENV || 'development'),
63+
'process.env.NODE_ENV': JSON.stringify(NODE_ENV),
6464
}),
6565

6666
isDevelopment

0 commit comments

Comments
 (0)