diff --git a/gulpfile.js b/gulpfile.js index 6f8e1bf..97ed4cf 100755 --- a/gulpfile.js +++ b/gulpfile.js @@ -45,20 +45,17 @@ function getViewFiles(directory, extension) { gulp.task('css', function() { var sass = require('gulp-sass'); var autoPrefixer = require('gulp-autoprefixer'); - var sourceMaps = require('gulp-sourcemaps'); + var cleanCss = require('gulp-clean-css'); return gulp.src(getViewFiles(dirs.src, 'scss')) - .pipe(sourceMaps.init()) .pipe(sass.sync({ outputStyle: 'compact', }).on('error', sass.logError)) + .pipe(autoPrefixer({ cascade: false })) - .pipe(sourceMaps.write('./',{ - addComment: true, - includeContent: true - })) + .pipe(cleanCss()) .pipe(gulp.dest(dirs.build)); }); gulp.task('css:watch', ['css'], function() { @@ -81,7 +78,7 @@ gulp.task('html', function() { return gulp.src(getViewFiles(dirs.viewSrc, 'pug')) .pipe(pug({ - pretty: true, + pretty: false, locals: locals })) .pipe(gulp.dest(dirs.viewDst)); diff --git a/package.json b/package.json index 13c1aa4..c692a7e 100644 --- a/package.json +++ b/package.json @@ -38,6 +38,7 @@ "gulp": "^3.9.1", "gulp-autoprefixer": "^3.1.1", "gulp-bower": "0.0.13", + "gulp-clean-css": "^2.3.2", "gulp-header": "^1.8.8", "gulp-pug": "^3.1.0", "gulp-sass": "^2.3.2",