-
-
Notifications
You must be signed in to change notification settings - Fork 605
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
[Feature]: Support moment-locales-webpack-plugin #6373
Comments
This actually enables |
It doesn't based on my testing. The below still fails :-(
|
Works for me: |
It seems you still have webpack installed in your project. If you use the same require line:
with the error:
Which makes sense to me as I didn't see any code for a ContextReplacementPlugin in this PR. |
If you look under the hood of moment-locales-webpack-plugin it uses |
I did look under the hood when I didn't get this working with only If you were to completely uninstall webpack from your project you would see the same issues I do. |
What problem does this feature solve?
Easily remove unused Moment.js locales when building with webpack.
https://www.npmjs.com/package/moment-locales-webpack-plugin
What does the proposed API of configuration look like?
const MomentLocalesPlugin = require('moment-locales-webpack-plugin');
The text was updated successfully, but these errors were encountered: