![](https://img-blog.csdnimg.cn/20201014180756926.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
node.js
樱丸小桃子!
这个作者很懒,什么都没留下…
展开
-
Gulp常用插件
gulp-htmlmin: html文件压缩使用npm安装包并将其添加到您的开发依赖项中:npminstall gulp-htmlmin使用const gulp = require('gulp');const htmlmin = require('gulp-htmlmin'); gulp.task('minify', () => { return gulp.src('src/*.html') .pipe(htmlmin({ collapseWhitespac..原创 2021-11-27 14:29:01 · 252 阅读 · 0 评论 -
The following tasks did not complete:first Did you forget to signal async completion?问题解决
问题学习gulp的前端自动化构建,按照示例代码,跑了一个简单的task,控制台显示:The following tasks did not complete: testGulpDid you forget to signal async completion?源代码const gulp = require('gulp');gulp.task('first', async() => { console.log('Hello World!'); // 1. 使用gulp原创 2021-11-27 11:24:57 · 338 阅读 · 0 评论