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.task('css', function() {
|
||||||
gulp.src('_assets/css/**/*.scss')
|
return gulp.src('_assets/css/**/*.scss')
|
||||||
.pipe(sass({outputStyle: 'compressed'}))
|
.pipe(sass({outputStyle: 'compressed'}))
|
||||||
.pipe(prefix('last 2 versions', '> 5%', 'ie 9'))
|
.pipe(prefix('last 2 versions', '> 5%', 'ie 9'))
|
||||||
.pipe(plumber())
|
.pipe(plumber())
|
||||||
.pipe(gulp.dest('assets/css'));
|
.pipe(gulp.dest('assets/css'));
|
||||||
});
|
});
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -43,7 +43,7 @@ gulp.task('css', function() {
|
||||||
*
|
*
|
||||||
**/
|
**/
|
||||||
gulp.task('scripts', 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(uglify())
|
||||||
.pipe(rename({
|
.pipe(rename({
|
||||||
basename: "main",
|
basename: "main",
|
||||||
|
@ -73,12 +73,12 @@ gulp.task('jslint', function() {
|
||||||
**/
|
**/
|
||||||
gulp.task('images', function () {
|
gulp.task('images', function () {
|
||||||
return gulp.src('images/*')
|
return gulp.src('images/*')
|
||||||
.pipe(imagemin({
|
.pipe(imagemin({
|
||||||
progressive: true,
|
progressive: true,
|
||||||
svgoPlugins: [{removeViewBox: false}],
|
svgoPlugins: [{removeViewBox: false}],
|
||||||
use: [pngquant()]
|
use: [pngquant()]
|
||||||
}))
|
}))
|
||||||
.pipe(gulp.dest('images'));
|
.pipe(gulp.dest('images'));
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -16,7 +16,6 @@
|
||||||
},
|
},
|
||||||
"homepage": "https://github.com/mmistakes/minimal-mistakes",
|
"homepage": "https://github.com/mmistakes/minimal-mistakes",
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"browser-sync": "^2.11.1",
|
|
||||||
"gulp": "^3.9.1",
|
"gulp": "^3.9.1",
|
||||||
"gulp-autoprefixer": "^3.1.0",
|
"gulp-autoprefixer": "^3.1.0",
|
||||||
"gulp-imagemin": "^2.4.0",
|
"gulp-imagemin": "^2.4.0",
|
||||||
|
|
Loading…
Add table
Reference in a new issue