-
-
Save anonymous/dfdde50e89f33eba6901 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
gulp.task('bundle', ['lint'], function() { | |
return gulp | |
.src(['./src/js/main.js']) | |
// How to exclude angular.js from the to5()/ngAnnotate/uglify routine | |
// but include it in the bundle? | |
// .src(['./node_modules/angular/angular.js']) | |
.pipe(sourcemaps.init()) | |
.pipe(to5()) | |
.pipe(concat('main.js')) | |
.pipe(ngAnnotate()) | |
.pipe(uglify()) | |
.pipe(sourcemaps.write()) | |
.pipe(gulp.dest('./endpoint/static/')); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment