mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-12-04 12:11:47 +00:00
webpack: Add OccurrenceOrderPlugin as Webpack optimizer (#9365)
* Add OccurrenceOrderPlugin * Add deprectation notice
This commit is contained in:
committed by
Horiuchi_H
parent
0710f0ad23
commit
da28561597
@@ -333,6 +333,7 @@ plugin = new webpack.optimize.DedupePlugin();
|
||||
plugin = new webpack.optimize.LimitChunkCountPlugin(options);
|
||||
plugin = new webpack.optimize.MinChunkSizePlugin(options);
|
||||
plugin = new webpack.optimize.OccurenceOrderPlugin(preferEntry);
|
||||
plugin = new webpack.optimize.OccurrenceOrderPlugin(preferEntry);
|
||||
plugin = new webpack.optimize.UglifyJsPlugin(options);
|
||||
plugin = new webpack.optimize.UglifyJsPlugin();
|
||||
plugin = new webpack.optimize.UglifyJsPlugin({
|
||||
|
||||
Vendored
+2
@@ -327,7 +327,9 @@ declare module "webpack" {
|
||||
* Assign the module and chunk ids by occurrence count. Ids that are used often get lower (shorter) ids.
|
||||
* This make ids predictable, reduces to total file size and is recommended.
|
||||
*/
|
||||
// TODO: This is a typo, and will be removed in Webpack 2.
|
||||
OccurenceOrderPlugin: optimize.OccurenceOrderPluginStatic;
|
||||
OccurrenceOrderPlugin: optimize.OccurenceOrderPluginStatic;
|
||||
/**
|
||||
* Minimize all JavaScript output of chunks. Loaders are switched into minimizing mode.
|
||||
* You can pass an object containing UglifyJs options.
|
||||
|
||||
Reference in New Issue
Block a user