From 13e6d8ca76ddbcb3c648ecafc3ad5a118c2d03d2 Mon Sep 17 00:00:00 2001 From: Aaron Carlino Date: Fri, 12 May 2017 14:36:45 +1200 Subject: [PATCH] Get rid of special dev plugins --- webpack-dev.config.js | 16 ---------------- 1 file changed, 16 deletions(-) diff --git a/webpack-dev.config.js b/webpack-dev.config.js index be614ca7..7e4a7ccb 100644 --- a/webpack-dev.config.js +++ b/webpack-dev.config.js @@ -2,22 +2,6 @@ const webpack = require('webpack'); const Config = require('./webpack.config'); if (Array.isArray(Config)) { - const jsConfig = Config.find((item) => item.name === 'js'); - - jsConfig.plugins = [ - ...jsConfig.plugins, - new webpack.ProvidePlugin({ - jQuery: 'jQuery', - $: 'jQuery', - }), - // Most vendor libs are loaded directly into the 'vendor' bundle (through require() calls in vendor.js). - // This ensures that any further require() calls in other bundles aren't duplicating libs. - new webpack.optimize.CommonsChunkPlugin({ - name: 'vendor', - minChunks: Infinity, - }), - ]; - for (var i = 0; i < Config.length; i++) { Config[i].devtool = 'source-map'; }