-
-
Notifications
You must be signed in to change notification settings - Fork 108
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Compressing files copied by 'copy-webpack-plugin' #63
Comments
I am also interested in a solution to this problem, not certain where the issue stems from... |
I can confirm that this PR fixed by issues with the following config:
|
@nmcclay why don't use https://github.com/perchlayer/po-loader or https://github.com/queicherius/i18next-po-loader for this purpose? |
The problem was the order of execution for generating gzip compression after copying an external SPA app directory in my case, not moving .po files. The issue just manifests as the same issue, that the CompressorPlugin wasn't running AFTER the copy plugin. Using this fork effectively fixed that load issue in my case. |
@nmcclay Can you say what actually solved you problem? My config:
info.json is not gzipped in this case |
Its either that your path configuration is too rigid for CopyWebpackPlugin, or your CompressionPlugin test is incorrect, not sure which. This configuration works with .json files for me:
|
dependencies, note that I'm using aforementioned forked version of compression-webpack-plugin:
|
This helped and json is gzipped:
but now flag deleteOriginalAssets doesn't work. Thanks for the tip |
I have also same problem angular4 component bundling not working in firefox fix is below |
I'm still having this issue, i have tried downgrading using the forked repo and nothing has this been fixed yet? Dependencies
webpack.config.js
|
Hello,
This is my setup:
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!
The text was updated successfully, but these errors were encountered: