8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c22ebce commit 992f3eaCopy full SHA for 992f3ea
babel.config.js
@@ -1,5 +1,12 @@
1
+const prodPlugins = []
2
+if (process.env.NODE_ENV === 'production'){
3
+ prodPlugins.push('transform-remove-console')
4
+}
5
module.exports = {
6
presets: [
7
'@vue/cli-plugin-babel/preset'
8
+ ],
9
+plugins: [
10
+ ...prodPlugins
11
]
12
}
package.json
@@ -12,6 +12,7 @@
"@element-plus/icons-vue": "^2.0.6",
13
"@highlightjs/vue-plugin": "^2.1.0",
14
"axios": "^0.26.1",
15
+ "babel-plugin-transform-remove-console": "^6.9.4",
16
"core-js": "^3.8.3",
17
"element-plus": "^2.2.21",
18
"express": "^4.18.2",
0 commit comments