source map

This commit is contained in:
willyb321
2018-04-13 16:16:42 +10:00
parent 6ed82b366c
commit 9f492db9c6
2 changed files with 2 additions and 1 deletions

View File

@@ -18,7 +18,7 @@ CopyDirPlugin.prototype.apply = function(compiler) {
};
module.exports = {
devtool: 'eval',
devtool: 'source-map',
devServer: {
headers: { "Access-Control-Allow-Origin": "*" }
},

View File

@@ -23,6 +23,7 @@ module.exports = {
app: ['babel-polyfill', path.resolve(__dirname, 'src/app/index')],
lib: ['d3', 'react', 'react-dom', 'classnames', 'fbemitter', 'lz-string']
},
devtool: 'source-map',
resolve: {
extensions: ['.js', '.jsx', '.json', '.less']
},