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'm running a grunt task:  uglify: {     options: {         report: 'gzip'     },     all: {         expand: true,         flatten: true,         cwd: 'js/',         src: ['*.js', '!*.min.js'],         dest: 'j...
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 plugin to compress my javascript source files for production.  The problem occurs when I try to debug a function in chrome's dev-tools (or firefox's).   I set mangle:true (default value) in uglify task config i...
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...
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...

Tags

Recent Questions

Top Questions

Home Tags Terms of Service Privacy Policy DMCA Contact Us

©2020 All rights reserved.