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.
DisqusJS/gulpfile.js

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'));