Skip to content

Commit 4629083

Browse files
Matt Wistrandmwistrand
authored andcommitted
Add compression for dist mode
Add compression-webpack-plugin and brotli-webpack-plugin for compressing production builds with gzip and brotli, respectively.
1 parent fcfa228 commit 4629083

File tree

5 files changed

+254
-13
lines changed

5 files changed

+254
-13
lines changed

README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -132,6 +132,10 @@ An array of paths to [CLDR JSON](https://github.com/dojo/i18n#loading-cldr-data)
132132
}
133133
```
134134

135+
#### `compression`: Array<'gzip' | 'brotli'>
136+
137+
Options for compression when running in `dist` mode. Each array value represents a different algorithm, allowing both gzip and brotli builds to be output side-by-side.
138+
135139
#### `features`: object
136140

137141
A map of [`has`](https://github.com/dojo/has/) features to boolean flags that can be used when building in `dist` mode to remove unneeded imports or conditional branches. See the [`static-build-loader`](https://github.com/dojo/webpack-contrib/#static-build-loader) documentation for more information.

0 commit comments

Comments
 (0)