From c2a682fcaf1172245792ccddbf77798c3ea1b240 Mon Sep 17 00:00:00 2001 From: Josh Wedekind Date: Fri, 12 Jul 2019 14:49:44 -0700 Subject: [PATCH] Add moduleIds and chunkIds to webpack optimization options. (#36848) --- types/webpack/index.d.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/types/webpack/index.d.ts b/types/webpack/index.d.ts index c8efdf0ad9..3f038863cb 100644 --- a/types/webpack/index.d.ts +++ b/types/webpack/index.d.ts @@ -661,6 +661,10 @@ declare namespace webpack { namedModules?: boolean; /** Instead of numeric ids, give chunks readable names for better debugging. */ namedChunks?: boolean; + /** Tells webpack which algorithm to use when choosing module ids. Default false. */ + moduleIds?: boolean | "natural" | "named" | "hashed" | "size" | "total-size"; + /** Tells webpack which algorithm to use when choosing chunk ids. Default false. */ + chunkIds?: boolean | "natural" | "named" | "size" | "total-size"; /** Defines the process.env.NODE_ENV constant to a compile-time-constant value. This allows to remove development only code from code. */ nodeEnv?: string | false; /** Use the minimizer (optimization.minimizer, by default uglify-js) to minimize output assets. */