I am trying to use gulp in order to minify a folder containing JS files. However, one of the files has the above error, preventing it from being minified.  I managed to catch and print the error, which I've partially printed here:  JS_Parse_Error...
When I use gulp-uglify to minify the Javascript files the order gets messed up.  Lets say I have this task working as expected:  var gulp = require('gulp'); var rename = require('gulp-rename'); var gp_concat = require('gulp-concat...
I'm working thorough johnpapa's course on automation with Gulp and seem to hit a weird wall: when I'm trying to run the CSS and JS concatenation and minification task it fails to do the minification.  This is the task:  gulp.task('opt...
Everything is setup and working to concatenate and compile my styles and scripts. When an error occurs gulp-notify and gulp-plumber throw the error up as a mac notification and in terminal, and gulp doesn't stop running - which is great :)  Howev...
I have the following task:  var uglify = require('gulp-uglify');  gulp.task('scripts', function () {   gulp.src('./src/scripts/*.js')     .pipe(concat('main.js'))     .pipe(uglify())     .pipe(gulp.dest('./dist'...
I am currently refactoring a project where previously all of the minified JavaScript files were being placed in a specific directory. Now I need to the minified versions to stay in the same directories  as their source files.  Currently I do this:  g...
I am using Gulp UglifyJS and want to preserve function names for specific files. Is there a way to not mangle certain files?? Does mangle.except accept a path?...
I'm using gulp to build a single javascript file with gulp-concat and gulp-uglify.   Original Files  //File 1 var Proj = Proj || {};  //File 2 Proj.Main = (function() {      var Method = function(){ /*Code*/ };     return { "Method":Metho...
Here is my repository https://github.com/shellwe/QA_WP_Template  If you just needed to see the code snippet; here it is  gulp.task('uglify', function() {       return gulp.src('js/all.min.js')         .pipe(uglify())         .pipe(gul...
I've added .run function as follow:  coursesApp.run(['$rootScope'], function ($rootScope) {     $rootScope.slugLinkCompany = function(item, link) {         if (item) {             var makeSlug = item.name.toLowerCase().replace(/[^\w ]+/g,...

Tags

Recent Questions

Top Questions

Home Tags Terms of Service Privacy Policy DMCA Contact Us

©2020 All rights reserved.