1
0
mirror of https://github.com/chinchang/web-maker.git synced 2025-08-01 11:00:28 +02:00

upgrade packages for preact x

This commit is contained in:
Kushagra Gour
2019-07-15 21:50:41 +05:30
parent a162c5e555
commit 60e1de8203
7 changed files with 24072 additions and 11809 deletions

View File

@@ -1,4 +1,4 @@
var CommonsChunkPlugin = require('webpack/lib/optimize/CommonsChunkPlugin');
// var CommonsChunkPlugin = require('webpack/lib/optimize/CommonsChunkPlugin');
/**
* Function that mutates original webpack config.
@@ -34,12 +34,12 @@ export default function(config, env, helpers) {
// Remove the default hash append in chunk name
config.output.chunkFilename = '[name].chunk.js';
config.plugins.push(
new CommonsChunkPlugin({
name: 'vendor',
minChunks: ({ resource }) => /node_modules/.test(resource)
})
);
// config.plugins.push(
// new CommonsChunkPlugin({
// name: 'vendor',
// minChunks: ({ resource }) => /node_modules/.test(resource)
// })
// );
const swPlugin = helpers.getPluginsByName(
config,