dynamic-cdn-webpack-plugin
dynamic-cdn-webpack-plugin copied to clipboard
Support for webpack 5
I was using this plugin for webpack 4 and wanted to use it for webpack 5.
If you are interested in accepting with pull request, there are a few points of note:
- I republished it under @effortlessmotion/dynamic-cdn-webpack-plugin so we'd need to change the module name back
- I added a line to the README.md warning this is a fork when I published it under a different org
- I made it work with Node 10 like webpack guarantees as a compatible version
- I removed ava and replaced it with tape as I couldn't get the latest ava to test on Node 10
- I removed babel and es6 modules to make this simpler to test, run, and publish without extra steps. Webpack 5 uses require for backwards compatibility without transpiling
@kmalakoff can you please link this to say it fixes #70?
This fixes issue 70
@mastilver are you still updating this?
Hi @kmalakoff ! One of the maintainers here :)
Thanks for the huge help in adding Webpack 5 support to this plugin. Much appreciated.
I'm unable to reach @mastilver (I'll try again) so I'm unsure as to how we would publish to npm but I don't think that should stop us from merging this into the codebase.
I'll go through your PR and get back on this asap. If in the event we aren't able to push this to npm, I think we can add a message to the README pointing to the @effortlessmotion/dynamic-cdn-webpack-plugin
for now.
Hi @aulisius, any updates?
Hi @richardantao, you can use @effortlessmotion/dynamic-cdn-webpack-plugin
package which supports webpack 5.
FYI we have never been able after multiple attempts to contribute back to this module with module-to-cdn. We have decided to fork it under Talend github organisation. The fork is public and we have deployed sites in production with custom CDN based on this fork. https://github.com/Talend/ui/tree/master/fork
We have added multiple features to answer needs for deployments:
- possibility to have other CDN than unpkg which is not for production cie website.
- cdn url formating
- add metadata to html webpack plugin
- fix bug around dependencies management
- introduce a dependencies.json file along UMDs
We plan to add webpack 5 support this year
Would be great to have this done. I'm sure the maintainers could update the pull request and fix the issues directly, no? Can anyone else help speed this up?
There's no blockers to merge this PR but only @mastilver holds the access to publish on npm. So, even if the PR is merged, it wouldn't be updated on npm
@mastilver would be grateful if you can publish it. thank you.
author is dead or what? this project is saddly no longer maintained as i see.