Browse Source

Add devtool option in webpack config

docs
Artur Arseniev 8 years ago
parent
commit
90ff7b0997
  1. 1
      webpack.config.js

1
webpack.config.js

@ -39,6 +39,7 @@ module.exports = env => {
output: output, output: output,
plugins: plugins, plugins: plugins,
mode: isProd ? 'production' : 'development', mode: isProd ? 'production' : 'development',
devtool: isProd ? 'source-map' : (!env ? 'cheap-module-eval-source-map' : false),
module: { module: {
rules: [{ rules: [{
test: /\/index\.js$/, test: /\/index\.js$/,

Loading…
Cancel
Save