1. 安装插件 删除文件夹:gulp-clean 压缩css:gulp-cssmin css前缀:gulp-autoprefixer 压缩js:gulp-uglify ES6转ES5:gulp-babel 套件1:@babel/core 套件2:@babel/preset-env 压缩html:gulp-htmlmin 服务器插件:gulp-webserver 2. 在gulpFile.js文件中引入所需插件 const gulp = require(gulp); const cssmin = require(gulp-cssmin); const autoprefixer = req