.webpackrc 455 B

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