Browse Source

perf: 合并代码

wangcz 6 years ago
parent
commit
9d4aebdb9b
2 changed files with 10 additions and 24 deletions
  1. 2 10
      .babelrc
  2. 8 14
      package.json

+ 2 - 10
.babelrc

@@ -1,14 +1,6 @@
 {
   "presets": [
-    "es2015",
-    "stage-2"
-  ],
-  "plugins": [
-    ["transform-runtime", {
-      "helpers": false, // defaults to true
-      "polyfill": false, // defaults to true
-      "regenerator": false, // defaults to true
-      "moduleName": "babel-runtime" // defaults to "babel-runtime"
-    }]
+    "@nuxt/babel-preset-app",
+    "@babel/env"
   ]
 }

+ 8 - 14
package.json

@@ -5,8 +5,8 @@
   "author": "yingp <yingp@usoftchina.com>",
   "private": true,
   "dependencies": {
+    "@babel/polyfill": "^7.2.3",
     "axios": "^0.15.3",
-    "babel-polyfill": "^6.26.0",
     "bezier-easing": "^2.0.3",
     "bootstrap": "^3.3.7",
     "cookiejar": "^2.1.1",
@@ -18,7 +18,7 @@
     "js-md5": "^0.7.3",
     "jsonp": "^0.2.1",
     "mint-ui": "^2.2.13",
-    "nuxt": "^2.0.0",
+    "nuxt": "2.0.0",
     "v-vuerify-next": "^0.2.0",
     "vee-validate": "^2.0.0",
     "vue-awesome-swiper": "^2.5.4",
@@ -39,25 +39,19 @@
     "precommit": "npm run lint"
   },
   "devDependencies": {
-    "babel-plugin-component": "^0.10.1",
-    "babel-plugin-external-helpers": "^6.22.0",
-    "babel-cli": "^6.24.1",
-    "babel-core": "^6.26.0",
+    "@nuxt/babel-preset-app": "^2.3.4",
     "babel-eslint": "^7.1.1",
-    "babel-loader": "^7.1.1",
-    "babel-plugin-transform-runtime": "^6.23.0",
-    "babel-preset-es2015": "^6.24.1",
-    "babel-preset-stage-2": "^6.24.1",
-    "css-loader": "^0.28.7",
     "eslint": "^4.13.0",
-    "eslint-plugin-flowtype": "^2.49.3",
     "eslint-config-standard": "^6.2.1",
     "eslint-loader": "^1.6.1",
+    "eslint-plugin-flowtype": "^2.49.3",
     "eslint-plugin-html": "^2.0.0",
     "eslint-plugin-promise": "^3.4.1",
     "eslint-plugin-standard": "^2.0.1",
-    "node-sass": "^4.9.0",
+    "html-webpack-plugin": "^3.2.0",
+    "mini-css-extract-plugin": "^0.5.0",
+    "node-sass": "^4.11.0",
     "nodemon": "^1.14.11",
-    "sass-loader": "^6.0.6"
+    "sass-loader": "^7.1.0"
   }
 }