Compress an assets

This commit is contained in:
syuilo
2017-05-17 00:28:45 +09:00
parent fb70e3b176
commit 4c2a3d8df0
6 changed files with 19 additions and 5 deletions

View File

@@ -0,0 +1,9 @@
/**
* Compressor
*/
const CompressionPlugin = require('compression-webpack-plugin');
export default () => new CompressionPlugin({
deleteOriginalAssets: true
});