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.

Đánh giá

Độ khó
3/5
Thời gian dự kiến
1-2 ngày
Mức phù hợp với người mới
30/100
Loại issue
Lỗi
Độ rõ ràng
Cần làm rõ
Mức độ hoạt động
Đình trệ
Công nghệ
javascript, webpack
Lĩnh vực
build-system, frontend

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.

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
e

Ngôn ngữ chính
TypeScript
Star
930
Fork
92
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Chuẩn bị môi trường

Dự án này không cung cấp dev container, Dockerfile hay hướng dẫn đóng góp, nên bạn cần tự thiết lập môi trường: hãy bắt đầu từ README và xem hướng dẫn đóng góp lần đầu của chúng tôi để biết các bước chung.

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.

Issue khác của javascript-obfuscator/webpack-obfuscator

Tất cả issue của javascript-obfuscator/webpack-obfuscator

Issue tương tự

Thêm issue về TypeScript

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.