jjwallace Posted April 8, 2017 Share Posted April 8, 2017 Which uglifyJS methods do you use to protect your code? Link to comment Share on other sites More sharing options...
rblopes Posted April 8, 2017 Share Posted April 8, 2017 The sole purpose of UglifyJS is to obfuscate and compress code. It works the same for both. For Gulp, use this plugin, and this one for Grunt. So, which task manager do you intend to use? Link to comment Share on other sites More sharing options...
bruno_ Posted April 8, 2017 Share Posted April 8, 2017 I use web essentials plugin to bundle and minify js and css in visual studio community. Link to comment Share on other sites More sharing options...
spinnerbox Posted April 8, 2017 Share Posted April 8, 2017 I started JS from the Doug Crockford times, so I know ES5 methods to protect code and keep all of it inside one DOM node called by the name of the application I make. I even avoid creating methods like setScore(newScore), so if you were to follow ES5 best practices it will be safe, at least from ordinary users who understand a bit JS coding. Unfortunatelly, everyone can download the JS code in a file and hack it in various ways. I use Nodejs with Grunt/Uglifyjs Now there is ES6 which I should also learn sadly, always something new to learn in the programming business. Link to comment Share on other sites More sharing options...
jjwallace Posted April 8, 2017 Author Share Posted April 8, 2017 13 hours ago, rblopes said: The sole purpose of UglifyJS is to obfuscate and compress code. It works the same for both. For Gulp, use this plugin, and this one for Grunt. So, which task manager do you intend to use? Cool, just got grunt working and i love it! rblopes 1 Link to comment Share on other sites More sharing options...
jjwallace Posted April 12, 2017 Author Share Posted April 12, 2017 How do you guys site lock? Link to comment Share on other sites More sharing options...
Recommended Posts