mirror of
https://github.com/Xevion/old.xevion.github.io.git
synced 2025-12-08 10:07:42 -06:00
did it hell yeah
This commit is contained in:
@@ -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 ));
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
@@ -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'));
|
||||||
});
|
});
|
||||||
|
|
||||||
}
|
}
|
||||||
@@ -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' ));
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user