mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
* Update index.d.ts * Bump version * Update compression-webpack-plugin-tests.ts * Update index.d.ts
16 lines
388 B
TypeScript
16 lines
388 B
TypeScript
import { Configuration } from 'webpack';
|
|
import CompressionPlugin = require('compression-webpack-plugin');
|
|
|
|
const c: Configuration = {
|
|
plugins: [
|
|
new CompressionPlugin({
|
|
asset: "[path].gz[query]",
|
|
algorithm: "gzip",
|
|
cache: true,
|
|
test: /\.js$|\.html$/,
|
|
threshold: 10240,
|
|
minRatio: 0.8
|
|
})
|
|
]
|
|
};
|