I am using grunt-contrib-uglify for my js build process and would very much like to be able to exclude certain parts of code from the final build.  So something that would look like:  /*BuildExcludeBegin*/ Run this code during development, but don...
let index = $scope.fetchPanelAssessorDetails.findIndex ( assessor => assessor.name === assessorDet.name );   I tried fetching the index of the object using above code. It worked too, but it affects my minification and uglification of code using g...
I'm new to AngularJS and Grunt. I have two grunt tasks setup in GruntFile.js for dev and production. For production I'm uglifying & combine many js files into one.  I need some guidance/tips on how to debug uglified javascript code in pro...
There is a function within my Javascript source file that I need to keep within my distribution for posterity (specifically for a sniffer to sniff out some information). It is not being called, but it needs to stay.  The Grunt task, grunt-contrib-ugl...
I am trying to setup my grunt file to not to override some folders inside the destination folders, but I couldn't figure out how.  My structure  Basically I have 2 folders:   htdocs htdocs_src    htdocs_src is the folder we use to develop things,...
I have this (legacy) code:  var object = {   'in': 'someThing' };   After uglify-js optimization code looks like:  var object = {   in: 'someThing' };   Here is lines from uglify-js readme (features list):     various small op...
I have a Grunt task that loops through directories and sub directories and compresses the JS and CSS files.  I get the following error which means that it accidentally thought less.js folder is a JavaScript file. I am wondering is it possible to conf...
I have been spending over an hour on this one, looked through several questions, but the answer is nowhere to be found.  I am running into a problem when using watch on my javascript files. All of the other files are watched and the tasks are execute...
We started using errorception on our website to track down errors that happen in the wild, and I am giving named anonymous functions a go (http://kangax.github.io/nfe/)  Basically the goal is to have useful stack traces and give names to anonymous fu...
I have a js library that must be obfuscated for release. However, the library supports plugins which may be written by users. The plug-ins must also be obfuscated, but in exactly the same way so that they work with the library.   In other words: MyLi...

Tags

Recent Questions

Top Questions

Home Tags Terms of Service Privacy Policy DMCA Contact Us

©2020 All rights reserved.