We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent bca1225 commit d11c9bbCopy full SHA for d11c9bb
1 file changed
webpack/webpack.config.js
@@ -2,6 +2,9 @@ const path = require('path')
2
const webpack = require('webpack')
3
const UglifyJSPlugin = require('uglifyjs-webpack-plugin')
4
5
+const getMode = () =>
6
+ process.env.NODE_ENV === 'production' ? 'production' : 'development'
7
+
8
const output = () => ({
9
filename: 'ReactPerfDevtool.js',
10
path: path.resolve(__dirname, '../extension/build'),
@@ -36,6 +39,7 @@ module.exports = {
36
39
entry: path.resolve(__dirname, '../src/index.js'),
37
40
output: output(),
38
41
target: 'web',
42
+ mode: getMode(),
43
externals: externals(),
44
module: {
45
rules: [jsLoader()]
0 commit comments