移除生产环境的console.log
This commit is contained in:
parent
867efa6759
commit
5f4f599ef3
@ -1,3 +1,10 @@
|
||||
const plugins = ['@vue/babel-plugin-transform-vue-jsx']
|
||||
|
||||
if (process.env.NODE_ENV === 'production') {
|
||||
plugins.push('transform-remove-console')
|
||||
}
|
||||
|
||||
module.exports = {
|
||||
plugins: plugins,
|
||||
presets: ['@vue/cli-plugin-babel/preset']
|
||||
}
|
||||
|
6
package-lock.json
generated
6
package-lock.json
generated
@ -3645,6 +3645,12 @@
|
||||
"resolved": "https://registry.npmmirror.com/babel-plugin-syntax-jsx/download/babel-plugin-syntax-jsx-6.18.0.tgz",
|
||||
"integrity": "sha1-CvMqmm4Tyno/1QaeYtew9Y0NiUY="
|
||||
},
|
||||
"babel-plugin-transform-remove-console": {
|
||||
"version": "6.9.4",
|
||||
"resolved": "https://registry.npmmirror.com/babel-plugin-transform-remove-console/download/babel-plugin-transform-remove-console-6.9.4.tgz",
|
||||
"integrity": "sha1-uYA2DAZzhOJLNXpYjYB9PINSd4A=",
|
||||
"dev": true
|
||||
},
|
||||
"babel-runtime": {
|
||||
"version": "6.26.0",
|
||||
"resolved": "https://registry.npmmirror.com/babel-runtime/download/babel-runtime-6.26.0.tgz",
|
||||
|
@ -40,6 +40,7 @@
|
||||
"@vue/eslint-config-prettier": "^6.0.0",
|
||||
"@vue/eslint-config-standard": "^5.1.2",
|
||||
"@vue/eslint-config-typescript": "^7.0.0",
|
||||
"babel-plugin-transform-remove-console": "^6.9.4",
|
||||
"eslint": "^7.12.1",
|
||||
"eslint-plugin-import": "^2.22.1",
|
||||
"eslint-plugin-node": "^11.1.0",
|
||||
|
@ -146,6 +146,7 @@ export default class extends Vue {
|
||||
.color-view .text{
|
||||
color: white;
|
||||
font-size: 28px;
|
||||
z-index: 11;
|
||||
}
|
||||
.watch_btn {
|
||||
width: 300px;
|
||||
|
@ -115,6 +115,9 @@ export default class extends Vue {
|
||||
justify-content: space-between;
|
||||
padding-right: 30px;
|
||||
}
|
||||
.version_list_panel img:nth-child(2) {
|
||||
margin-left: 2px;
|
||||
}
|
||||
.home_right_panel {
|
||||
width: 65%;
|
||||
position: relative;
|
||||
|
@ -69,6 +69,7 @@ export default class extends Vue {
|
||||
background-repeat: no-repeat;
|
||||
background-size: cover;
|
||||
position: relative;
|
||||
overflow: hidden;
|
||||
}
|
||||
.video-js {
|
||||
width: 100vw;
|
||||
@ -82,10 +83,10 @@ export default class extends Vue {
|
||||
background-color: transparent;
|
||||
}
|
||||
video{
|
||||
mix-blend-mode: screen;
|
||||
//mix-blend-mode: screen;
|
||||
}
|
||||
video.playing {
|
||||
mix-blend-mode: normal;
|
||||
//mix-blend-mode: normal;
|
||||
}
|
||||
|
||||
</style>
|
||||
|
Loading…
x
Reference in New Issue
Block a user