Skip to content

Commit 148033c

Browse files
committed
Add production node env to test react build
1 parent fba54a0 commit 148033c

File tree

2 files changed

+13
-16
lines changed

2 files changed

+13
-16
lines changed

dist/ReactCardFlipper.js

Lines changed: 7 additions & 15 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

webpack.config.js

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,12 @@ module.exports = env => {
2727
]
2828
},
2929
plugins: [
30-
env.production ? new webpack.optimize.UglifyJsPlugin() : ''
30+
env.production ? new webpack.optimize.UglifyJsPlugin() : '',
31+
new webpack.DefinePlugin({
32+
"process.env": {
33+
NODE_ENV: JSON.stringify("production")
34+
}
35+
}),
3136
]
3237
}
3338
};

0 commit comments

Comments
 (0)