【文件属性】:
文件名称:gulp:使用 Gulp 完成项目的自动化构建
文件大小:68KB
文件格式:ZIP
更新时间:2021-05-09 12:33:13
HTML
使用说明:
npm install
// 安装依赖
// 命令配置
npm run clean === gulp clean // 清理文件夹
npm run compile === gulp compile // 只操作得文件打包编译
npm run build === gulp build // 执行文件打包,用于生产
npm run serve === gulp serve // 开启服务,前提是run build 再执行serve
npm run build_serve === gulp build_serve // 合并gulp build 跟serve
编程思路:
安装项目所需依赖: npm install
安装gulp:npm install gulp
打包css 文件:
安装 scss 编译文件: npm install gulp-sass --save-dev
执行gul
【文件预览】:
gulp-master
----.gitignore(54B)
----package.json(1KB)
----src()
--------assets()
--------about.html(628B)
--------index.html(2KB)
--------layouts()
--------partials()
----gulpfile.js(3KB)
----LICENSE(1KB)
----public()
--------favicon.ico(5KB)
----README.md(2KB)