Set the vendors chunk to always split out shared node_modules code (https://github.com/woocommerce/woocommerce-blocks/pull/577)

This commit is contained in:
Kelly Dwan 2019-05-21 06:29:09 -04:00 committed by Mike Jolley
parent 7db16590ce
commit 099835918b
1 changed files with 3 additions and 2 deletions

View File

@ -5,8 +5,8 @@ const path = require( 'path' );
const MergeExtractFilesPlugin = require( './bin/merge-extract-files-webpack-plugin' );
const MiniCssExtractPlugin = require( 'mini-css-extract-plugin' );
const CleanWebpackPlugin = require( 'clean-webpack-plugin' );
const ProgressBarPlugin = require('progress-bar-webpack-plugin');
const chalk = require('chalk');
const ProgressBarPlugin = require( 'progress-bar-webpack-plugin' );
const chalk = require( 'chalk' );
const NODE_ENV = process.env.NODE_ENV || 'development';
const externals = {
@ -72,6 +72,7 @@ const GutenbergBlocksConfig = {
test: /[\\/]node_modules[\\/]/,
name: 'vendors',
chunks: 'all',
enforce: true,
},
editor: {
// Capture all `editor` stylesheets and the components stylesheets.