Skip to content

Commit 6b081ec

Browse files
Remove code obfuscation
Because the code will be open sourced soon!
1 parent 9d8eca3 commit 6b081ec

File tree

3 files changed

+4
-22
lines changed

3 files changed

+4
-22
lines changed

package.json

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "PeerViewer",
33
"productName": "PeerViewer",
4-
"version": "1.0.4",
4+
"version": "1.1.0",
55
"description": "Peer-to-peer remote desktop and support solution, completely free for unlimited personal and commercial use.",
66
"homepage": "https://peerviewer.github.io/",
77
"main": ".webpack/main",
@@ -32,8 +32,7 @@
3232
"electron": "27.1.2",
3333
"electron-builder": "^24.9.1",
3434
"node-loader": "^2.0.0",
35-
"style-loader": "^3.3.3",
36-
"webpack-obfuscator": "^3.5.1"
35+
"style-loader": "^3.3.3"
3736
},
3837
"dependencies": {
3938
"hyperdht": "^6.11.0",

webpack.main.config.js

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
Obfuscator = require('webpack-obfuscator')
2-
31
module.exports = {
42
/**
53
* This is the main entry point for your application, it's the first file
@@ -9,12 +7,5 @@ module.exports = {
97
// Put your normal webpack config below here
108
module: {
119
rules: require('./webpack.rules'),
12-
},
13-
plugins: [
14-
new Obfuscator({
15-
deadCodeInjection: true,
16-
rotateUnicodeArray: true,
17-
encodeUnicodeLiterals: true
18-
}),
19-
],
10+
}
2011
};

webpack.renderer.config.js

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
const rules = require('./webpack.rules');
2-
Obfuscator = require('webpack-obfuscator')
32
const CopyPlugin = require("copy-webpack-plugin");
43

54
rules.push(
@@ -20,14 +19,7 @@ module.exports = {
2019
patterns: [
2120
{ from: "src/images/", to: "images/" },
2221
],
23-
}),
24-
/* Disabled because it creates non-deterministic issues:
25-
new Obfuscator({
26-
// this causes issues: deadCodeInjection: true,
27-
// causes \x20 in strings: rotateUnicodeArray: true,
28-
// causes \x20 in strings: encodeUnicodeLiterals: true
29-
}),
30-
*/
22+
})
3123
],
3224
};
3325

0 commit comments

Comments
 (0)