Compress an assets
This commit is contained in:
9
webpack/plugins/compression.ts
Normal file
9
webpack/plugins/compression.ts
Normal file
@@ -0,0 +1,9 @@
|
||||
/**
|
||||
* Compressor
|
||||
*/
|
||||
|
||||
const CompressionPlugin = require('compression-webpack-plugin');
|
||||
|
||||
export default () => new CompressionPlugin({
|
||||
deleteOriginalAssets: true
|
||||
});
|
Reference in New Issue
Block a user