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...
I'm using gulp-usemin for minify the javascript files I use in my app, for some reason gulp is not seeing one of my files. I have this in my index.html: <body ng-app="App"> <!--[if lte IE 8]> <p class="browse...
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'm writing basic javascript using the classes syntax and trying to uglify it with gulp, but getting this error: events.js:72 throw er; // Unhandled 'error' event I simply used the example code from mozilla's website: class P...
I am relatively new to writing a gulpfile.js manually. I have a Backbone and Marionette based project where the gulp file so far looked like the following: var gulp = require('gulp'); var $ = require('gulp-load-plugins')(); var brows...
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'm strugling over a very annoying error. First at all: I'm new to gulp. I try to realise a single page application with Angular. To make my workflow better, I tried to implement gulp. I was heading some serious npm errors while installing...
©2020 All rights reserved.