diff --git a/config/webpack.common.js b/config/webpack.common.js index 84138ad4..09eed78f 100644 --- a/config/webpack.common.js +++ b/config/webpack.common.js @@ -1,5 +1,4 @@ const webpack = require('webpack'); -const path = require('path'); const helpers = require('./helpers'); /* diff --git a/config/webpack.dev.js b/config/webpack.dev.js index 471358ab..29745e76 100644 --- a/config/webpack.dev.js +++ b/config/webpack.dev.js @@ -1,5 +1,4 @@ const helpers = require('./helpers'); -const path = require('path'); const webpackMerge = require('webpack-merge'); // used to merge webpack configs const webpackMergeDll = webpackMerge.strategy({plugins: 'replace'}); const commonConfig = require('./webpack.common.js'); // the settings that are common to prod and dev @@ -42,7 +41,7 @@ module.exports = function (options) { * See: http://webpack.github.io/docs/configuration.html#devtool * See: https://github.com/webpack/docs/wiki/build-performance#sourcemaps */ - devtool: 'cheap-module-source-map', + devtool: 'eval-source-map', /** * Options affecting the output of the compilation. @@ -72,7 +71,7 @@ module.exports = function (options) { * * See: http://webpack.github.io/docs/configuration.html#output-sourcemapfilename */ - sourceMapFilename: '[name].map', + sourceMapFilename: '[file].map', /** The filename of non-entry chunks as relative path * inside the output.path directory. @@ -135,7 +134,7 @@ module.exports = function (options) { }, dllDir: helpers.root('dll'), webpackConfig: webpackMergeDll(commonConfig({env: ENV}), { - devtool: 'cheap-module-source-map', + devtool: 'eval-source-map', plugins: [] }) }), diff --git a/config/webpack.prod.js b/config/webpack.prod.js index 4e21d7b4..727744a0 100644 --- a/config/webpack.prod.js +++ b/config/webpack.prod.js @@ -5,7 +5,6 @@ const commonConfig = require('./webpack.common.js'); // the settings that are co /** * Webpack Plugins */ -const DedupePlugin = require('webpack/lib/optimize/DedupePlugin'); const DefinePlugin = require('webpack/lib/DefinePlugin'); const ExtractTextPlugin = require('extract-text-webpack-plugin'); const IgnorePlugin = require('webpack/lib/IgnorePlugin');