Compress an assets
This commit is contained in:
parent
fb70e3b176
commit
4c2a3d8df0
6 changed files with 19 additions and 5 deletions
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
|
||||
});
|
||||
Loading…
Add table
Add a link
Reference in a new issue