As the title says I'm new to Grunt. I am following a tutorial located at: http://24ways.org/2013/grunt-is-not-weird-and-hard/. It is an older tutorial but most seems to work the same. I have installed "grunt-contrib-concat" and "grunt...
I'm using gruntjs (which uses uglifyjs) to build my Angularjs app. But uglifyjs still does not support es6, so in corresponding GitHub issue i found this. So now there is uglify-es, which seemingly supports es6. But I'm not sure how to integr...
I have the following Gruntfile.js:  module.exports = function(grunt) {   var config = {     pkg: grunt.file.readJSON('package.json'),      /* Some other tasks... */      uglify: {       options: {         banner: '/*! <%= pkg.name %>...
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 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...
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...
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...

Tags

Recent Questions

Top Questions

Home Tags Terms of Service Privacy Policy DMCA Contact Us

©2020 All rights reserved.