mirror of
https://github.com/silverstripe/silverstripe-cms
synced 2024-10-22 08:05:56 +02:00
Get rid of special dev plugins
This commit is contained in:
parent
de079154f4
commit
13e6d8ca76
@ -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';
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user