-
-
Notifications
You must be signed in to change notification settings - Fork 109
Closed
Description
Hello,
This is my setup:
let CompressionPlugin = require('compression-webpack-plugin');
let CopyWebpackPlugin = require('copy-webpack-plugin');
...
new CopyWebpackPlugin([{ from: 'src/assets', to: 'assets' }]),
new CompressionPlugin({
asset: '[path].gz',
algorithm: 'gzip',
test: /\.(js|css|map|po)$/,
// threshold: 10240,
minRatio: 10 // 0.8
}),
The problem is that .po files, which are in src/assets/translations, and which are copied by the CopyWebpackPlugin don't get compressed by the CompressionPlugin.
Not sure who's plugin fault it is. :)
Is it possible to get it work as intended?
Thanks!
o-alexandrov, gress2, lc-soft and thearchitgarg