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 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...

Tags

Recent Questions

Top Questions

Home Tags Terms of Service Privacy Policy DMCA Contact Us

©2020 All rights reserved.