From 9bd7dbded0832df186305b30c107a39b7d285a15 Mon Sep 17 00:00:00 2001 From: Alexander Zhukov Date: Tue, 28 Feb 2017 12:27:53 +0300 Subject: [PATCH] fix(build): fix #777 --- config/webpack.common.js | 1 - config/webpack.dev.js | 7 +++---- config/webpack.prod.js | 1 - 3 files changed, 3 insertions(+), 6 deletions(-) diff --git a/config/webpack.common.js b/config/webpack.common.js index 84138ad4a4..09eed78fed 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 471358ab57..29745e7646 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 4e21d7b4aa..727744a092 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');