fix: remove console.log in production

This commit is contained in:
Valentin Kaelin 2020-06-21 13:39:02 +02:00
parent 6ec0fc7e85
commit 17a1c620d4
3 changed files with 13 additions and 1 deletions

View file

@ -1,5 +1,10 @@
module.exports = {
presets: [
'@vue/app'
]
],
env: {
production: {
plugins: ['transform-remove-console']
}
}
}

View file

@ -2245,6 +2245,12 @@
"resolve": "^1.4.0"
}
},
"babel-plugin-transform-remove-console": {
"version": "6.9.4",
"resolved": "https://registry.npmjs.org/babel-plugin-transform-remove-console/-/babel-plugin-transform-remove-console-6.9.4.tgz",
"integrity": "sha1-uYA2DAZzhOJLNXpYjYB9PINSd4A=",
"dev": true
},
"balanced-match": {
"version": "1.0.0",
"resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.0.tgz",

View file

@ -21,6 +21,7 @@
"@vue/cli-plugin-eslint": "^3.12.1",
"@vue/cli-service": "^3.12.1",
"babel-eslint": "^10.1.0",
"babel-plugin-transform-remove-console": "^6.9.4",
"eslint": "^5.16.0",
"eslint-plugin-vue": "^5.2.3",
"tailwindcss": "^1.4.6",