webpack-config: build source-map in production mode

master
Will Roberts 8 years ago
parent 83ae3ebfab
commit 2286b842d2
  1. 2
      {{cookiecutter.app_name}}/webpack.config.js

@ -34,7 +34,7 @@ module.exports = {
resolve: { resolve: {
extensions: ['.js', '.jsx', '.css'] extensions: ['.js', '.jsx', '.css']
}, },
devtool: debug ? '#inline-sourcemap' : false, devtool: debug ? 'inline-sourcemap' : 'source-map',
devServer: { devServer: {
headers: { 'Access-Control-Allow-Origin': '*' } headers: { 'Access-Control-Allow-Origin': '*' }
}, },

Loading…
Cancel
Save