summaryrefslogtreecommitdiffstats
path: root/webpack.devConfig.js
diff options
context:
space:
mode:
authorArul.Nambi <arul.nambi@amdocs.com>2018-11-08 13:16:10 -0500
committerArul.Nambi <arul.nambi@amdocs.com>2018-11-08 13:16:28 -0500
commitbac46bcf87413e3a7f688530c3391992654e701b (patch)
tree9b51ef8d55819b9b8c947a7c4210bf99b1e24490 /webpack.devConfig.js
parente513a1ce93b9a70f01b62ca7560dbe52376cc5bd (diff)
Decreasing the initial load time
Issue-ID: AAI-1881 Change-Id: I1638a33096632e4853247e10b13ed5e1a540a4cb Signed-off-by: Arul.Nambi <arul.nambi@amdocs.com>
Diffstat (limited to 'webpack.devConfig.js')
-rw-r--r--webpack.devConfig.js10
1 files changed, 5 insertions, 5 deletions
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
}),