From ea1702c55ab878845e89d378e78628954fbf61c6 Mon Sep 17 00:00:00 2001 From: Brandon Marc-Aurele Date: Mon, 13 Nov 2017 14:55:07 -0500 Subject: [PATCH] Added 'manual' to the 'chunksSortMode` configuration Added in 2.30.0 https://github.com/jantimon/html-webpack-plugin/blob/672f34bc98ff4130dba94551866d0e57086a7915/CHANGELOG.md#v2300 --- types/html-webpack-plugin/html-webpack-plugin-tests.ts | 3 +++ types/html-webpack-plugin/index.d.ts | 4 ++-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/types/html-webpack-plugin/html-webpack-plugin-tests.ts b/types/html-webpack-plugin/html-webpack-plugin-tests.ts index a84d19bea5..7a1e5f20bc 100644 --- a/types/html-webpack-plugin/html-webpack-plugin-tests.ts +++ b/types/html-webpack-plugin/html-webpack-plugin-tests.ts @@ -19,6 +19,9 @@ const optionsArray: HtmlWebpackPlugin.Options[] = [ { arbitrary: 'data', }, + { + chunksSortMode: 'manual', + } ]; const plugins: HtmlWebpackPlugin[] = optionsArray.map(options => new HtmlWebpackPlugin(options)); diff --git a/types/html-webpack-plugin/index.d.ts b/types/html-webpack-plugin/index.d.ts index b08a69faa5..1ae15efb71 100644 --- a/types/html-webpack-plugin/index.d.ts +++ b/types/html-webpack-plugin/index.d.ts @@ -1,4 +1,4 @@ -// Type definitions for html-webpack-plugin 2.28 +// Type definitions for html-webpack-plugin 2.30 // Project: https://github.com/ampedandwired/html-webpack-plugin // Definitions by: Simon Hartcher , Benjamin Lim // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped @@ -37,7 +37,7 @@ declare namespace HtmlWebpackPlugin { * Allows to control how chunks should be sorted before they are included to the html. * Allowed values: `'none' | 'auto' | 'dependency' | {function}` - default: `'auto'` */ - chunksSortMode?: 'none' | 'auto' | 'dependency' | ChunkComparator; + chunksSortMode?: 'none' | 'auto' | 'dependency' | 'manual' | ChunkComparator; /** Allows you to add only some chunks (e.g. only the unit-test chunk) */ chunks?: string[]; /** Allows you to skip some chunks (e.g. don't add the unit-test chunk) */