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 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 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 can't figure out why jQuery is being ignored when running my Grunt task. Here is what it looks like:  module.exports = function (grunt) {     // Configuration     grunt.initConfig({         pkg: grunt.file.readJSON('package.json'),...
I have an AngularJS application that was built without yeo, grunt, bower etc.. This is currently done via Rails. But due to certain issues, we are in the process of separating AngularJS app separate from Rails and to use Rails purely as API.   How do...
I'm making changes to an existing Angular SPA which is sometimes viewed within an application's in-product browser. The application exposes several functions on window.external.Handle to allow pages to interact with certain features in the ap...

Tags

Recent Questions

Top Questions

Home Tags Terms of Service Privacy Policy DMCA Contact Us

©2020 All rights reserved.