Wei Zhu 8 lat temu
rodzic
commit
874afcc31d
1 zmienionych plików z 7 dodań i 13 usunięć
  1. 7 13
      .roadhogrc

+ 7 - 13
.roadhogrc

@@ -1,21 +1,15 @@
 {
   "entry": "src/index.js",
+  "extraBabelPlugins": [
+    "transform-runtime",
+    "transform-decorators-legacy",
+    "transform-class-properties",
+    ["import", { "libraryName": "antd", "libraryDirectory": "es", "style": true }]
+  ],
   "env": {
     "development": {
       "extraBabelPlugins": [
-        "dva-hmr",
-        "transform-runtime",
-        "transform-decorators-legacy",
-        "transform-class-properties",
-        ["import", { "libraryName": "antd", "style": true }]
-      ]
-    },
-    "production": {
-      "extraBabelPlugins": [
-        "transform-runtime",
-        "transform-decorators-legacy",
-        "transform-class-properties",
-        ["import", { "libraryName": "antd", "style": true }]
+        "dva-hmr"
       ]
     }
   },