Minor edits to Gulpfile
This commit is contained in:
parent
c19cd2a391
commit
a5f8516ef5
2 changed files with 12 additions and 13 deletions
24
gulpfile.js
24
gulpfile.js
|
@ -27,11 +27,11 @@ var pngquant = require('imagemin-pngquant');
|
|||
*
|
||||
**/
|
||||
gulp.task('css', function() {
|
||||
gulp.src('_assets/css/**/*.scss')
|
||||
.pipe(sass({outputStyle: 'compressed'}))
|
||||
.pipe(prefix('last 2 versions', '> 5%', 'ie 9'))
|
||||
.pipe(plumber())
|
||||
.pipe(gulp.dest('assets/css'));
|
||||
return gulp.src('_assets/css/**/*.scss')
|
||||
.pipe(sass({outputStyle: 'compressed'}))
|
||||
.pipe(prefix('last 2 versions', '> 5%', 'ie 9'))
|
||||
.pipe(plumber())
|
||||
.pipe(gulp.dest('assets/css'));
|
||||
});
|
||||
|
||||
/**
|
||||
|
@ -43,7 +43,7 @@ gulp.task('css', function() {
|
|||
*
|
||||
**/
|
||||
gulp.task('scripts', function() {
|
||||
gulp.src(['_assets/js/*.js', '_assets/js/plugins/*.js'])
|
||||
return gulp.src(['_assets/js/*.js', '_assets/js/plugins/*.js'])
|
||||
.pipe(uglify())
|
||||
.pipe(rename({
|
||||
basename: "main",
|
||||
|
@ -73,12 +73,12 @@ gulp.task('jslint', function() {
|
|||
**/
|
||||
gulp.task('images', function () {
|
||||
return gulp.src('images/*')
|
||||
.pipe(imagemin({
|
||||
progressive: true,
|
||||
svgoPlugins: [{removeViewBox: false}],
|
||||
use: [pngquant()]
|
||||
}))
|
||||
.pipe(gulp.dest('images'));
|
||||
.pipe(imagemin({
|
||||
progressive: true,
|
||||
svgoPlugins: [{removeViewBox: false}],
|
||||
use: [pngquant()]
|
||||
}))
|
||||
.pipe(gulp.dest('images'));
|
||||
});
|
||||
|
||||
|
||||
|
|
|
@ -16,7 +16,6 @@
|
|||
},
|
||||
"homepage": "https://github.com/mmistakes/minimal-mistakes",
|
||||
"devDependencies": {
|
||||
"browser-sync": "^2.11.1",
|
||||
"gulp": "^3.9.1",
|
||||
"gulp-autoprefixer": "^3.1.0",
|
||||
"gulp-imagemin": "^2.4.0",
|
||||
|
|
Loading…
Reference in a new issue