Skip to content
This repository has been archived by the owner on Sep 13, 2022. It is now read-only.

Add Obfuscation and AntiDebugger into PMSF #110

Open
wants to merge 2 commits into
base: develop
Choose a base branch
from

Conversation

hammydown4325
Copy link
Contributor

npm install
npm run build

This version now comes with javascript obfuscation in it to better protect. It also has antidebug built into it. If you want to read more about it and some of the config options you can add to it look at https://github.com/javascript-obfuscator/javascript-obfuscator#javascript-obfuscator-options.

For those of you doing dev work you will need to use npm run dev to see the map without obfuscation.

Copy link
Owner

@Glennmen Glennmen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Added a couple comments for you ;)

Gruntfile.js Outdated
@@ -3,6 +3,7 @@ module.exports = function (grunt) {
// load plugins as needed instead of up front
require('jit-grunt')(grunt);
require('phplint').gruntPlugin(grunt);
grunt.loadNpmTasks('grunt-contrib-obfuscator');
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think this line is needed, we use jit-grint: https://www.npmjs.com/package/jit-grunt

Gruntfile.js Outdated
minjson: {
build: {
files: {
'static/dist/data/cries.min.json': 'static/data/cries.json',
'static/dist/data/pokemon.min.json': 'static/data/pokemon.json',
'static/dist/data/moves.min.json': 'static/data/moves.json',
'static/dist/data/mapstyle.min.json': 'static/data/mapstyle.json',
'static/dist/data/raid-boss.min.json': 'static/data/raid-boss.json',
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This file doesn't exist.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants