mirror of
https://github.com/Xevion/old.xevion.github.io.git
synced 2025-12-06 23:15:32 -06:00
did it hell yeah
This commit is contained in:
@@ -7,7 +7,7 @@ module.exports = gulp => {
|
||||
|
||||
gulp.task('images', () => {
|
||||
return gulp.src( imgPath )
|
||||
.pipe(imagemin())
|
||||
.pipe( imagemin() )
|
||||
.pipe(gulp.dest( destPath ));
|
||||
});
|
||||
|
||||
|
||||
@@ -2,8 +2,8 @@ const sass = require('gulp-sass');
|
||||
const prefix = require('gulp-autoprefixer');
|
||||
const cleanCSS = require('gulp-clean-css');
|
||||
|
||||
const scssPath = '_scss/*.scss';
|
||||
const destPath = '_site/css';
|
||||
const scssPath = '_scss/*.scss';
|
||||
const destPath = '_site/css';
|
||||
|
||||
module.exports = gulp => {
|
||||
|
||||
@@ -13,9 +13,10 @@ module.exports = gulp => {
|
||||
includePaths: ['scss'],
|
||||
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(gulp.dest( destPath ))
|
||||
.pipe(gulp.dest('css'));
|
||||
});
|
||||
|
||||
}
|
||||
@@ -1,8 +1,8 @@
|
||||
const jshint = require('gulp-jshint');
|
||||
const babel = require('gulp-babel');
|
||||
const uglify = require('gulp-uglify');
|
||||
const jshint = require('gulp-jshint');
|
||||
const babel = require('gulp-babel');
|
||||
const uglify = require('gulp-uglify');
|
||||
|
||||
const jsPath = '_scripts/*.js';
|
||||
const jsPath = '_scripts/*.js';
|
||||
const destPath = '_site/js';
|
||||
|
||||
module.exports = gulp => {
|
||||
@@ -13,7 +13,7 @@ module.exports = gulp => {
|
||||
.pipe(babel({
|
||||
presets: ['es2015']
|
||||
}))
|
||||
.pipe(uglify())
|
||||
.pipe( uglify() )
|
||||
.pipe(gulp.dest( destPath ))
|
||||
.pipe(gulp.dest( 'js' ));
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user