mirror of
https://github.com/Xevion/old.xevion.github.io.git
synced 2025-12-06 11:15:37 -06:00
uncommenting build files creates jekyll error
This commit is contained in:
@@ -1,21 +1,21 @@
|
||||
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 destPath = '_site/js';
|
||||
// const jsPath = '_scripts/*.js';
|
||||
// const destPath = '_site/js';
|
||||
|
||||
module.exports = gulp => {
|
||||
// module.exports = gulp => {
|
||||
|
||||
gulp.task('scripts', () => {
|
||||
return gulp.src( jsPath )
|
||||
.pipe(jshint())
|
||||
.pipe(babel({
|
||||
presets: ['es2015']
|
||||
}))
|
||||
.pipe(uglify())
|
||||
.pipe(gulp.dest( destPath ))
|
||||
.pipe(gulp.dest( 'js' ));
|
||||
});
|
||||
// gulp.task('scripts', () => {
|
||||
// return gulp.src( jsPath )
|
||||
// .pipe(jshint())
|
||||
// .pipe(babel({
|
||||
// presets: ['es2015']
|
||||
// }))
|
||||
// .pipe(uglify())
|
||||
// .pipe(gulp.dest( destPath ))
|
||||
// .pipe(gulp.dest( 'js' ));
|
||||
// });
|
||||
|
||||
}
|
||||
// }
|
||||
|
||||
Reference in New Issue
Block a user