summaryrefslogtreecommitdiff
path: root/UI source code/dns_mapping_ui-master/babel.config.js
diff options
context:
space:
mode:
Diffstat (limited to 'UI source code/dns_mapping_ui-master/babel.config.js')
-rw-r--r--UI source code/dns_mapping_ui-master/babel.config.js11
1 files changed, 11 insertions, 0 deletions
diff --git a/UI source code/dns_mapping_ui-master/babel.config.js b/UI source code/dns_mapping_ui-master/babel.config.js
new file mode 100644
index 0000000..804632a
--- /dev/null
+++ b/UI source code/dns_mapping_ui-master/babel.config.js
@@ -0,0 +1,11 @@
+const plugins = ['@vue/babel-plugin-transform-vue-jsx']
+// 生产环境移除console
+if (process.env.NODE_ENV === 'production') {
+ plugins.push('transform-remove-console')
+}
+module.exports = {
+ plugins: plugins,
+ presets: [
+ '@vue/app'
+ ]
+}