Skip to content

Commit

Permalink
Remove webpack obfuscator
Browse files Browse the repository at this point in the history
  • Loading branch information
PurpleHorrorRus committed Sep 10, 2020
1 parent 71eecd7 commit 6caa4ea
Show file tree
Hide file tree
Showing 3 changed files with 36 additions and 291 deletions.
3 changes: 1 addition & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,6 @@
"terser-webpack-plugin": "3.0.7",
"url-loader": "^4.1.0",
"utf-8-validate": "^5.0.2",
"vue-loader": "^15.9.3",
"webpack-obfuscator": "^1.7.0"
"vue-loader": "^15.9.3"
}
}
19 changes: 1 addition & 18 deletions src/renderer/nuxt.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,21 +16,8 @@ module.exports = {
if (isClient) {
config.target = "electron-renderer";
}
config.plugins = config.plugins.filter(plugin => plugin.constructor.name !== "UglifyJsPlugin");

if (process.env.NODE_ENV === "production") {
const obfuscator = require("webpack-obfuscator");
config.plugins = [...config.plugins, new obfuscator({
compact: true,
stringArray: true,
rotateStringArray: true,
shuffleStringArray: true,
// disableConsoleOutput: true,
identifierNamesGenerator: "hexadecimal",
splitStrings: true,
splitStringsChunkLength: 10
})];
}
config.plugins = config.plugins.filter(plugin => plugin.constructor.name !== "UglifyJsPlugin");

config.module.rules.push(
{
Expand All @@ -39,10 +26,6 @@ module.exports = {
use: {
loader: "babel-loader"
}
},
{
test: /\.mp3$/,
loader: "file-loader"
}
);
},
Expand Down
Loading

0 comments on commit 6caa4ea

Please sign in to comment.