Skip to content

Commit

Permalink
fix(build): fix #777
Browse files Browse the repository at this point in the history
  • Loading branch information
Alexander Zhukov committed Feb 28, 2017
1 parent 7215b0b commit 9bd7dbd
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 6 deletions.
1 change: 0 additions & 1 deletion config/webpack.common.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
const webpack = require('webpack');
const path = require('path');
const helpers = require('./helpers');

/*
Expand Down
7 changes: 3 additions & 4 deletions config/webpack.dev.js
Original file line number Diff line number Diff line change
@@ -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
Expand Down Expand Up @@ -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.
Expand Down Expand Up @@ -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.
Expand Down Expand Up @@ -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: []
})
}),
Expand Down
1 change: 0 additions & 1 deletion config/webpack.prod.js
Original file line number Diff line number Diff line change
Expand Up @@ -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');
Expand Down

0 comments on commit 9bd7dbd

Please sign in to comment.