.webpackrc 469 B

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