javascript-obfuscator / javascript-obfuscator/webpack-obfuscator
Vue 2 webapp fails to build (Webpack)
Chưa có ai nhận issue này.
- Ngôn ngữ chính
- TypeScript
- Star
- 928
- Fork
- 92
- Chỉ số merge pull request
- Không có pull request nào được merge trong 30 ngày
Mô tả
Hi
Versions:
`
"webpack-obfuscator": "^2.6.0",
"@vue/cli-service": "^4.5.13",
"vue": "^2.6.11",
`
I am trying to obfuscate my vue.js 2 webapp. My cue.config.js looks like this
`const fs = require('fs')
module.exports = {
chainWebpack: config => {
config.module.rules.delete('eslint')
var JavaScriptObfuscator = require('webpack-obfuscator');
config.plugin('obfuscation').enforce = 'post';
config.plugin('obfuscation').use(JavaScriptObfuscator, [
{
compact: false,
controlFlowFlattening: false,
controlFlowFlatteningThreshold: 0.75,
deadCodeInjection: false,
deadCodeInjectionThreshold: 0.4,
debugProtection: false,
debugProtectionInterval: false,
disableConsoleOutput: false,
identifierNamesGenerator: 'hexadecimal',
log: true,
numbersToExpressions: false,
renameGlobals: false,
selfDefending: false,
simplify: false,
splitStrings: false,
splitStringsChunkLength: 10,
stringArray: false,
stringArrayEncoding: ['base64'],
stringArrayIndexShift: false,
stringArrayRotate: false,
stringArrayThreshold: 0.75,
stringArrayShuffle: true,
stringArrayWrappersCount: 2,
stringArrayWrappersChainedCalls: true,
stringArrayWrappersParametersMaxCount: 4,
sourceMap: false,
stringArrayWrappersType: 'function',
transformObjectKeys: false,
target: 'node',
unicodeEscapeSequence: false
}, []]);
},
outputDir: process.env.OUTPUT_DIR
}`
I disabled all options but i cannot get it to work. As soon as i run `npm run serve --open` the app is compiled and the browser opens, but i get no output (i should be redirected to the login page of my app). Instead i get the attached error in my browser console
Im unsure what i am doing wrong here

e
Hướng dẫn đóng góp
Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Hướng nghiên cứu
Bắt đầu với cấu hình webpack trong cue.config.js và tái hiện sự cố bằng npm run serve --open. So sánh lỗi trong console của trình duyệt được hiển thị trong hình ảnh đính kèm với thiết lập webpack-obfuscator và Vue CLI. Được xem là hoàn tất khi webapp build thành công và mở trang đăng nhập mà không có lỗi trình duyệt đã báo cáo.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Đánh giá
- Công nghệ
- javascript, webpack
- Lĩnh vực
- build-system, frontend
- Loại issue
- Lỗi
- Độ khó
- 3/5
- Thời gian dự kiến
- 1-2 ngày
- Mức độ hoạt động
- Đình trệ
- Độ rõ ràng
- Cần làm rõ
- Mức phù hợp với người mới
- 30/100