mirror of https://github.com/hans362/DisqusJS.git
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
16 lines
393 B
JavaScript
16 lines
393 B
JavaScript
let gulp = require('gulp');
|
|
let uglify = require('gulp-uglify');
|
|
let rename = require("gulp-rename");
|
|
|
|
gulp.task('build', () => {
|
|
return gulp.src('src/**/*.js')
|
|
.pipe(uglify({
|
|
output: {
|
|
comments: /^!/
|
|
}
|
|
}))
|
|
.pipe(rename({ suffix: '.min' }))
|
|
.pipe(gulp.dest('dist'));
|
|
});
|
|
|
|
gulp.task('default', gulp.parallel('build')); |