ff-stream-web

git clone git://archive.git.mtrnord.blog/MTRNord/ff-stream-web.git
Log | Files | Refs | README | LICENSE

commit 0487ff5f8808ad6c15d0362b191ea35c0f2a1f0f
parent 1bdcc9e4f6424112f5934af0febc7760f1d17f09
Author: Taixu Chen <chentaixu@gmail.com>
Date:   Tue, 10 Nov 2015 04:10:01 +0800

Removed redundant spread vars

In serverConfig and appConfig, it is redundant to spread the values in config (config.module and config.plugins) which will be merged by lodash anyways.
Diffstat:
Mtools/webpack.config.js | 4----
1 file changed, 0 insertions(+), 4 deletions(-)

diff --git a/tools/webpack.config.js b/tools/webpack.config.js @@ -116,7 +116,6 @@ const appConfig = merge({}, config, { // http://webpack.github.io/docs/configuration.html#devtool devtool: DEBUG ? 'cheap-module-eval-source-map' : false, plugins: [ - ...config.plugins, new webpack.DefinePlugin(GLOBALS), ...(!DEBUG ? [ new webpack.optimize.DedupePlugin(), @@ -156,7 +155,6 @@ const appConfig = merge({}, config, { }, }, } : JS_LOADER, - ...config.module.loaders, { test: /\.css$/, loader: 'style-loader/useable!css-loader!postcss-loader', @@ -196,7 +194,6 @@ const serverConfig = merge({}, config, { }, devtool: 'source-map', plugins: [ - ...config.plugins, new webpack.DefinePlugin(GLOBALS), new webpack.BannerPlugin('require("source-map-support").install();', { raw: true, entryOnly: false }), @@ -204,7 +201,6 @@ const serverConfig = merge({}, config, { module: { loaders: [ JS_LOADER, - ...config.module.loaders, { test: /\.css$/, loader: 'css-loader!postcss-loader',