X-Git-Url: https://gerrit.onap.org/r/gitweb?p=aai%2Fsparky-fe.git;a=blobdiff_plain;f=webpack.devConfig.js;fp=webpack.devConfig.js;h=9f13b15a8da9dba32a77af859b6fd48c9e8d3095;hp=e4bf80b0a0de1165ca0850a8bb1b3803fd980a4b;hb=bac46bcf87413e3a7f688530c3391992654e701b;hpb=e513a1ce93b9a70f01b62ca7560dbe52376cc5bd diff --git a/webpack.devConfig.js b/webpack.devConfig.js index e4bf80b..9f13b15 100644 --- a/webpack.devConfig.js +++ b/webpack.devConfig.js @@ -23,9 +23,10 @@ var path = require('path'); var webpack = require('webpack'); var devPort = process.env.PORT || 8001; +var BundleAnalyzerPlugin = require('webpack-bundle-analyzer').BundleAnalyzerPlugin; module.exports = { - devtool: 'eval-source-map', + devtool: 'source-map', entry: { bundle: [ 'app/main.app.jsx', @@ -39,7 +40,8 @@ module.exports = { output: { path: path.join(__dirname, 'dist'), publicPath: ``, - filename: '[name].js' + filename: '[name].js', + sourceMapFilename: '[name].js.map' }, resolve: { root: [path.resolve('.')], @@ -67,9 +69,6 @@ module.exports = { } }, module: { - preLoaders: [ - {test: /\.(js|jsx)$/, loader: 'source-map-loader'} - ], loaders: [ {test: /\.(js|jsx)$/, loaders: ['babel-loader', 'eslint-loader'], exclude: /node_modules/}, {test: /\.(css|scss)$/, loaders: ['style-loader', 'css-loader', 'sass-loader']}, @@ -86,6 +85,7 @@ module.exports = { emitWarning: true }, plugins: [ + //new BundleAnalyzerPlugin(), new webpack.DefinePlugin({ DEBUG: true }),