We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7cd45d1 commit 75318d1Copy full SHA for 75318d1
webpack.config.js
@@ -5,11 +5,12 @@ const ENTRY_POINTS = [ './src/index' ];
5
const DEV_ENTRY_POINTS = ENTRY_POINTS.concat( [ 'webpack-hot-middleware/client' ] );
6
7
module.exports = {
8
- devtool: 'cheap-module-eval-source-map',
9
- entry: process.NODE_ENV === 'production' ? ENTRY_POINTS : DEV_ENTRY_POINTS,
+ devtool: process.env.NODE_ENV === 'production' ? 'cheap-source-map' : 'cheap-module-eval-source-map',
+ entry: process.env.NODE_ENV === 'production' ? ENTRY_POINTS : DEV_ENTRY_POINTS,
10
output: {
11
path: path.join(__dirname, 'dist'),
12
filename: 'bundle.js',
13
+ sourceMapFilename: 'bundle.map.js',
14
publicPath: '/'
15
},
16
plugins: [
0 commit comments