did it hell yeah

This commit is contained in:
Brittany Chiang
2017-03-15 14:01:40 -04:00
parent 6344830957
commit b4e7f01ccf
3 changed files with 10 additions and 9 deletions

View File

@@ -7,7 +7,7 @@ module.exports = gulp => {
gulp.task('images', () => { gulp.task('images', () => {
return gulp.src( imgPath ) return gulp.src( imgPath )
.pipe(imagemin()) .pipe( imagemin() )
.pipe(gulp.dest( destPath )); .pipe(gulp.dest( destPath ));
}); });

View File

@@ -2,8 +2,8 @@ const sass = require('gulp-sass');
const prefix = require('gulp-autoprefixer'); const prefix = require('gulp-autoprefixer');
const cleanCSS = require('gulp-clean-css'); const cleanCSS = require('gulp-clean-css');
const scssPath = '_scss/*.scss'; const scssPath = '_scss/*.scss';
const destPath = '_site/css'; const destPath = '_site/css';
module.exports = gulp => { module.exports = gulp => {
@@ -13,9 +13,10 @@ module.exports = gulp => {
includePaths: ['scss'], includePaths: ['scss'],
outputStyle: 'expanded' outputStyle: 'expanded'
})) }))
.pipe(prefix(['last 15 versions', '> 1%', 'ie 8', 'ie 7'], {cascade: true})) .pipe(prefix(['last 15 versions'], {cascade: true}))
.pipe(cleanCSS({compatibility: 'ie8'})) .pipe(cleanCSS({compatibility: 'ie8'}))
.pipe(gulp.dest( destPath )) .pipe(gulp.dest( destPath ))
.pipe(gulp.dest('css')); .pipe(gulp.dest('css'));
}); });
} }

View File

@@ -1,8 +1,8 @@
const jshint = require('gulp-jshint'); const jshint = require('gulp-jshint');
const babel = require('gulp-babel'); const babel = require('gulp-babel');
const uglify = require('gulp-uglify'); const uglify = require('gulp-uglify');
const jsPath = '_scripts/*.js'; const jsPath = '_scripts/*.js';
const destPath = '_site/js'; const destPath = '_site/js';
module.exports = gulp => { module.exports = gulp => {
@@ -13,7 +13,7 @@ module.exports = gulp => {
.pipe(babel({ .pipe(babel({
presets: ['es2015'] presets: ['es2015']
})) }))
.pipe(uglify()) .pipe( uglify() )
.pipe(gulp.dest( destPath )) .pipe(gulp.dest( destPath ))
.pipe(gulp.dest( 'js' )); .pipe(gulp.dest( 'js' ));
}); });