소스 검색

add iview upgrade hint

Michael Wang 6 년 전
부모
커밋
e2d7356b00
1개의 변경된 파일9개의 추가작업 그리고 0개의 파일을 삭제
  1. 9 0
      prebuild.js

+ 9 - 0
prebuild.js

@@ -1,3 +1,12 @@
+const packageJson = require("./package.json");
+
+if (packageJson.dependencies.iview !== "^3.1.2") {
+  console.log(
+    "iview 的版本不要轻易升级,一定要充分测试。曾经尝试升级到3.2.2后发现progressbar有问题。"
+  );
+  process.exit(1);
+}
+
 console.log("> prebuild");
 console.log("> prebuild create .env.production.local");