.webpackrc 420 B

123456789101112131415161718192021
  1. {
  2. "entry": "src/index.js",
  3. "extraBabelPlugins": [
  4. ["import", { "libraryName": "antd", "libraryDirectory": "es", "style": true }]
  5. ],
  6. "env": {
  7. "development": {
  8. "extraBabelPlugins": [
  9. "dva-hmr"
  10. ]
  11. }
  12. },
  13. "ignoreMomentLocale": true,
  14. "theme": "./src/theme.js",
  15. "html": {
  16. "template": "./src/index.ejs"
  17. },
  18. "publicPath": "/",
  19. "disableDynamicImport": true,
  20. "hash": true
  21. }