Skip to content

Commit daf745c

Browse files
committed
Remove obfuscator
1 parent b27c063 commit daf745c

2 files changed

Lines changed: 2 additions & 13 deletions

File tree

package.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,9 @@
2020
"webpack-cli": "^3.2.1",
2121
"webpack-dev-server": "^3.1.14",
2222
"webpack-merge": "^4.2.1",
23-
"webpack-obfuscator": "^0.18.0",
2423
"workbox-webpack-plugin": "^3.6.3"
2524
},
2625
"dependencies": {
2726
"phaser": "^3.16.2"
2827
}
29-
}
28+
}

webpack/webpack.prod.js

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
const path = require('path')
22
const merge = require('webpack-merge')
33
const common = require('./webpack.common')
4-
const JavaScriptObfuscator = require('webpack-obfuscator')
54
const CleanWebpackPlugin = require('clean-webpack-plugin')
65

76
const prod = {
@@ -19,16 +18,7 @@ const prod = {
1918
}
2019
},
2120
plugins: [
22-
new CleanWebpackPlugin(['dist/*.js'], { root: path.resolve(__dirname, '../') }),
23-
new JavaScriptObfuscator(
24-
{
25-
rotateStringArray: true,
26-
stringArray: true,
27-
// stringArrayEncoding: 'base64', // disabled by default
28-
stringArrayThreshold: 0.75
29-
},
30-
['vendors.*.js']
31-
)
21+
new CleanWebpackPlugin(['dist/*.js'], { root: path.resolve(__dirname, '../') })
3222
]
3323
}
3424

0 commit comments

Comments
 (0)