发布网友 发布时间:2022-04-29 16:29
共1个回答
热心网友 时间:2023-10-19 18:32
用plumber var plumber = require('gulp-plumber'); var notify = require('gulp-notify'); //js合并压缩 gulp.task('minifyjs', function() { return gulp.src(jsSrcPath) .pipe(plumber({ errorHandler: notify.onError('Error: ') })) .pipe(concat('app.js')) .pipe(gulp.dest(distPath)) .pipe(rename({ suffix: '.min' })) .pipe(uglify()) .pipe(gulp.dest(distPath)); });热心网友 时间:2023-10-19 18:32
用plumber var plumber = require('gulp-plumber'); var notify = require('gulp-notify'); //js合并压缩 gulp.task('minifyjs', function() { return gulp.src(jsSrcPath) .pipe(plumber({ errorHandler: notify.onError('Error: ') })) .pipe(concat('app.js')) .pipe(gulp.dest(distPath)) .pipe(rename({ suffix: '.min' })) .pipe(uglify()) .pipe(gulp.dest(distPath)); });热心网友 时间:2023-10-19 18:32
用plumber var plumber = require('gulp-plumber'); var notify = require('gulp-notify'); //js合并压缩 gulp.task('minifyjs', function() { return gulp.src(jsSrcPath) .pipe(plumber({ errorHandler: notify.onError('Error: ') })) .pipe(concat('app.js')) .pipe(gulp.dest(distPath)) .pipe(rename({ suffix: '.min' })) .pipe(uglify()) .pipe(gulp.dest(distPath)); });热心网友 时间:2023-10-19 18:32
用plumber var plumber = require('gulp-plumber'); var notify = require('gulp-notify'); //js合并压缩 gulp.task('minifyjs', function() { return gulp.src(jsSrcPath) .pipe(plumber({ errorHandler: notify.onError('Error: ') })) .pipe(concat('app.js')) .pipe(gulp.dest(distPath)) .pipe(rename({ suffix: '.min' })) .pipe(uglify()) .pipe(gulp.dest(distPath)); });热心网友 时间:2023-10-19 18:32
用plumber var plumber = require('gulp-plumber'); var notify = require('gulp-notify'); //js合并压缩 gulp.task('minifyjs', function() { return gulp.src(jsSrcPath) .pipe(plumber({ errorHandler: notify.onError('Error: ') })) .pipe(concat('app.js')) .pipe(gulp.dest(distPath)) .pipe(rename({ suffix: '.min' })) .pipe(uglify()) .pipe(gulp.dest(distPath)); });热心网友 时间:2023-11-10 19:29
用plumber var plumber = require('gulp-plumber'); var notify = require('gulp-notify'); //js合并压缩 gulp.task('minifyjs', function() { return gulp.src(jsSrcPath) .pipe(plumber({ errorHandler: notify.onError('Error: ') })) .pipe(concat('app.js')) .pipe(gulp.dest(distPath)) .pipe(rename({ suffix: '.min' })) .pipe(uglify()) .pipe(gulp.dest(distPath)); });