Allow false as cache group value (#29354)

This commit is contained in:
Gray Zhang
2018-10-02 19:06:44 +01:00
committed by John Reilly
parent 108e27b1cd
commit 0378d4e1ac
2 changed files with 2 additions and 1 deletions
+1 -1
View File
@@ -601,7 +601,7 @@ declare namespace webpack {
/** Give chunks created a name (chunks with equal name are merged) */
name?: boolean | string | ((...args: any[]) => any);
/** Assign modules to a cache group (modules from different cache groups are tried to keep in separate chunks) */
cacheGroups?: false | string | ((...args: any[]) => any) | RegExp | { [key: string]: CacheGroupsOptions };
cacheGroups?: false | string | ((...args: any[]) => any) | RegExp | { [key: string]: CacheGroupsOptions | false };
}
interface RuntimeChunkOptions {
/** The name or name factory for the runtime chunks. */
+1
View File
@@ -633,6 +633,7 @@ configuration = {
optimization: {
splitChunks: {
cacheGroups: {
default: false,
vendor: {
chunks: "initial",
test: "node_modules",