Skip to content

Commit

Permalink
Add minification
Browse files Browse the repository at this point in the history
  • Loading branch information
patrickmarabeas committed Jan 18, 2016
1 parent 3957898 commit e857eda
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion gulpfile.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
var gulp = require('gulp')
, sass = require('gulp-sass');
, rename = require('gulp-rename')
, uglify = require('gulp-uglify')
, sass = require('gulp-sass')
;

gulp.task('scripts', function() {
gulp.src('./lib/angular/angular.min.js')
Expand All @@ -20,6 +23,13 @@ gulp.task('styles', function() {
.pipe(gulp.dest('./demo/styles'));
});

gulp.task('compress', function() {
gulp.src('src/*.js')
.pipe(uglify())
.pipe(rename("ng-FitText.min.js"))
.pipe(gulp.dest('dist'))
});

gulp.task('watch', function() {
gulp.watch('./demo/**/*.scss', ['styles']);
});
Expand Down

0 comments on commit e857eda

Please sign in to comment.