Skip to content

Commit

Permalink
Improve assets.
Browse files Browse the repository at this point in the history
  • Loading branch information
NoUseFreak committed Mar 25, 2015
1 parent aefd822 commit 9d342d8
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
6 changes: 4 additions & 2 deletions gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ var concat = require('gulp-concat'),
filesize = require('gulp-filesize'),
rename = require('gulp-rename'),
less = require('gulp-less'),
cmq = require('gulp-combine-media-queries'),
del = require('del'),
livereload = require('gulp-livereload'),
notify = require("gulp-notify"),
Expand Down Expand Up @@ -74,8 +75,8 @@ gulp.task('scripts', ['scripts:vendor', 'scripts:app']);
gulp.task('scripts:vendor', function() {
gulp.src(paths.scripts.vendor)
.pipe(concat('vendor.js'))
//.pipe(stripDebug())
//.pipe(uglify())
.pipe(stripDebug())
.pipe(uglify())
.pipe(rename('vendor.min.js'))
.pipe(gulp.dest(paths.build))
.pipe(filesize());
Expand All @@ -100,6 +101,7 @@ gulp.task('styles:app', function() {
.pipe(less())
.on('error', errorHandler)
.pipe(concat('app.css'))
.pipe(cmq({log: true}))
.pipe(autoprefix('last 2 versions'))
.pipe(minifyCSS({
keepSpecialComments: 0
Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
"del": "^1.1.1",
"gulp": "^3.8.10",
"gulp-autoprefixer": "^2.0.0",
"gulp-combine-media-queries": "^0.2.0",
"gulp-concat": "^2.4.2",
"gulp-filesize": "0.0.6",
"gulp-less": "^3.0.0",
Expand Down

0 comments on commit 9d342d8

Please sign in to comment.