I have a grunt tasks to concat and minify all my javascript files into one single file and the javascript file is in dist folder. "dist/<%= pkg.name %>.min.js'"  "Gruntfile.js"  module.exports = function (grunt) {     grunt....
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 have not found a good way to grunt-uglify multiple script files spread over multiple folders while keeping the folder structure including the uglified files intact. The only reason I want to do this is to be able to increase the performance of the...
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 used grunt-uglify in my project and I'm working with es6. for some es6 features, such as fat arrow function, it's throwing an error. I think the uglify don't understant that syntax. so do i have a way to fix this issue. I mean can i use...
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...

Tags

Recent Questions

Top Questions

Home Tags Terms of Service Privacy Policy DMCA Contact Us

©2020 All rights reserved.