mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-11-29 01:31:45 +00:00
compression-webpack-plugin: asset -> filename
This commit is contained in:
@@ -6,7 +6,7 @@ new CompressionPlugin();
|
||||
const config: Configuration = {
|
||||
plugins: [
|
||||
new CompressionPlugin({
|
||||
asset: "[path].gz[query]",
|
||||
filename: "[path].gz[query]",
|
||||
algorithm: "gzip",
|
||||
cache: true,
|
||||
test: /\.js$|\.html$/,
|
||||
@@ -20,6 +20,9 @@ const configDefaultAlgo = new CompressionPlugin({
|
||||
compressionOptions: { level: 7 }
|
||||
});
|
||||
|
||||
// $ExpectError
|
||||
new CompressionPlugin({ asset: "[path].gz[query]" });
|
||||
|
||||
const zlib: Configuration = {
|
||||
plugins: [
|
||||
new CompressionPlugin({
|
||||
|
||||
+1
-1
@@ -21,7 +21,7 @@ declare namespace CompressionPlugin {
|
||||
type ZlibAlgorithm = 'deflate' | 'deflateRaw' | 'gzip';
|
||||
|
||||
interface BaseOptions {
|
||||
asset?: string;
|
||||
filename?: string;
|
||||
cache?: boolean | string;
|
||||
test?: RegExp | RegExp[];
|
||||
regExp?: RegExp | RegExp[];
|
||||
|
||||
Reference in New Issue
Block a user