-
-
Notifications
You must be signed in to change notification settings - Fork 49.8k
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
How to integrate AntD with Webpack2 #4491
Comments
Ok, I found a workaround for antd by just adding afc163/react-boilerplate@61ec8a1 alias: {
- moment: 'moment/moment.js',
+ moment$: 'moment/moment.js',
}, This came from https://webpack.js.org/configuration/resolve/#resolve-alias to match the You can try it on https://github.com/afc163/react-boilerplate |
@andrewvmail You can look reply above. |
working with webpack2 ref ant-design/ant-design#3947 & ant-design/ant-design#4491
Having the same issue (as the title - don't really understand what moment.js has to do with antd and webpack2). Would be great to see how antd, especially the css bit works with latest webpack. All examples I find are outdated. |
For anyone who landed here, this commit works: afc163/react-boilerplate@61ec8a1 Just remember to rebuild your dll, by running yarn install again if you are using react boilerplate. |
Environment(required)
What did you do? Please provide steps to re-produce your problem.
What do you expected?
A smooth process without modifying things in antd package side (datepicker module date-picker/locale/zh_CN.js:23).
I tried configuring through webpack different settings specifically dll, plugins, alias, noParse settings tried all settings from different tickets but still can't get it to work smoothly.
What happen?
npm run build:dll
Nothing major but its only an eye sore seeing the error during the build process.
Thanks in advance
A
The text was updated successfully, but these errors were encountered: