update code
parent
f2e0248fc6
commit
d1ca91f1f5
File diff suppressed because it is too large
Load Diff
|
@ -8,7 +8,7 @@
|
|||
"lint": "vue-cli-service lint"
|
||||
},
|
||||
"dependencies": {
|
||||
"axios": "0.24.0",
|
||||
"axios": "^1.6.8",
|
||||
"core-js": "^3.8.3",
|
||||
"dayjs": "^1.11.9",
|
||||
"element-ui": "^2.15.13",
|
||||
|
@ -22,6 +22,7 @@
|
|||
"lodash.throttle": "^4.1.1",
|
||||
"logt": "^1.4.1",
|
||||
"nprogress": "0.2.0",
|
||||
"v3": "file:",
|
||||
"vue": "^2.6.14",
|
||||
"vue-router": "^3.1.3",
|
||||
"vuex": "3.6.0"
|
||||
|
@ -34,7 +35,9 @@
|
|||
"@vue/cli-service": "~5.0.0",
|
||||
"eslint": "^7.32.0",
|
||||
"eslint-plugin-vue": "^8.0.3",
|
||||
"vue-template-compiler": "^2.6.14"
|
||||
"javascript-obfuscator": "^4.1.1",
|
||||
"vue-template-compiler": "^2.6.14",
|
||||
"webpack-obfuscator": "^3.5.1"
|
||||
},
|
||||
"eslintConfig": {
|
||||
"root": true,
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
const { defineConfig } = require('@vue/cli-service')
|
||||
const WebpackObfuscator = require('webpack-obfuscator')
|
||||
module.exports = defineConfig({
|
||||
transpileDependencies: true,
|
||||
publicPath :'/jhbs' ,
|
||||
|
@ -99,10 +100,28 @@ module.exports = defineConfig({
|
|||
filename:'projectEngin.html'
|
||||
}
|
||||
},*/
|
||||
configureWebpack:{
|
||||
externals:{
|
||||
configureWebpack:(config)=>{
|
||||
config.externals={
|
||||
'vue':"Vue"
|
||||
}
|
||||
if (process.env.NODE_ENV === 'production') {
|
||||
config.plugins.push(
|
||||
new WebpackObfuscator(
|
||||
{
|
||||
rotateStringArray: true, // 旋转字符串数组
|
||||
stringArray: true, // 使用字符串数组
|
||||
stringArrayEncoding: ['rc4'], // 字符串数组编码(rc4 是一个强加密算法)
|
||||
stringArrayThreshold: 0.75, // 混淆代码中的字符串百分比
|
||||
deadCodeInjection: true, // 注入死代码
|
||||
deadCodeInjectionThreshold: 0.4, // 死代码注入比例
|
||||
unicodeEscapeSequence: false, // 使用Unicode转义序列
|
||||
debugProtection: true, // 防止浏览器的开发者工具调试
|
||||
disableConsoleOutput: true, // 禁用 console.log、console.info 等输出
|
||||
},
|
||||
[] // 需要排除混淆的文件
|
||||
)
|
||||
)
|
||||
}
|
||||
},
|
||||
|
||||
})
|
||||
|
|
Loading…
Reference in New Issue