浏览代码

添加配置

lex 1 年之前
父节点
当前提交
767283c920
共有 1 个文件被更改,包括 14 次插入0 次删除
  1. 14 0
      .env.development

+ 14 - 0
.env.development

@@ -0,0 +1,14 @@
+# just a flag
+NODE_ENV = 'development'
+MODE = 'development'
+DEV = true
+
+
+# vue-cli uses the VUE_CLI_BABEL_TRANSPILE_MODULES environment variable,
+# to control whether the babel-plugin-dynamic-import-node plugin is enabled.
+# It only does one thing by converting all import() to require().
+# This configuration can significantly increase the speed of hot updates,
+# when you have a large number of pages.
+# Detail:  https://github.com/vuejs/vue-cli/blob/dev/packages/@vue/babel-preset-app/index.js
+
+VUE_CLI_BABEL_TRANSPILE_MODULES = true