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...
I am using Grunt and grunt-contrib-uglify plugin to minify the JavaScript files in my project.  The JS files are spread across multiple directories under src directory. My aim is to move them to the appropriate directories under build directory.  My...
Okay, so I am way new to Grunt and Node.js. I am building a site, and decided that the 'main.js' file was getting way too big. So, I split it up, and I am now trying to use Grunt to piece all of these JS files back together.  The issue that I...
I would like to remove my DEBUG statments at build, and I noticed on  http://lisperator.net/uglifyjs/compress I can define global_defs: { DEBUG : false } to remove anything wrapped in a debug clause if (DEBUG) {}  My uglify task doesn't seem to r...
I'm using grunt to uglify three JavaScript files:   functions.js formdata.min.js page-contact.js   I'm getting this error:  Warning: Uglification failed. Name expected. Line 38 in src/js/functions.js  Use --force to continue.   Line 38 of fun...

Tags

Recent Questions

Top Questions

Home Tags Terms of Service Privacy Policy DMCA Contact Us

©2020 All rights reserved.