javascript-obfuscator / javascript-obfuscator/webpack-obfuscator

Vue 2 webapp fails to build (Webpack)

Đang mở
#130 4 bình luận 1 reaction 0 người được giao Xem trên GitHub

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

![js obfuscator](https://user-images.githubusercontent.com/9249624/142955861-2f53d414-675d-474a-b7cf-2a7c5bb19d58.jpg)
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

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. 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.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. 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

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.