Browse Source

rm babel-plugin-dynamic-import-node

Pan 7 years ago
parent
commit
15edbf08be
2 changed files with 2 additions and 9 deletions
  1. 1 6
      .babelrc
  2. 1 3
      package.json

+ 1 - 6
.babelrc

@@ -8,10 +8,5 @@
     }],
     "stage-2"
   ],
-  "plugins":["transform-vue-jsx", "transform-runtime"],
-  "env": {
-    "development":{
-      "plugins": ["dynamic-import-node"]
-    }
-  }
+  "plugins":["transform-vue-jsx", "transform-runtime"]
 }

+ 1 - 3
package.json

@@ -5,7 +5,7 @@
   "description": "A vue admin template with Element UI & axios & iconfont & permission control & lint",
   "author": "Pan <panfree23@gmail.com>",
   "scripts": {
-    "dev": "cross-env BABEL_ENV=development webpack-dev-server --inline --progress --config build/webpack.dev.conf.js",
+    "dev": "webpack-dev-server --inline --progress --config build/webpack.dev.conf.js",
     "start": "npm run dev",
     "build": "node build/build.js",
     "build:report": "npm_config_report=true node build/build.js",
@@ -28,7 +28,6 @@
     "babel-eslint": "8.0.3",
     "babel-helper-vue-jsx-merge-props": "2.0.3",
     "babel-loader": "7.1.2",
-    "babel-plugin-dynamic-import-node": "1.2.0",
     "babel-plugin-syntax-jsx": "6.18.0",
     "babel-plugin-transform-runtime": "6.23.0",
     "babel-plugin-transform-vue-jsx": "3.5.0",
@@ -36,7 +35,6 @@
     "babel-preset-stage-2": "6.24.1",
     "chalk": "2.3.0",
     "copy-webpack-plugin": "4.2.3",
-    "cross-env": "5.1.1",
     "css-loader": "0.28.7",
     "eslint": "4.13.1",
     "eslint-friendly-formatter": "3.0.0",