Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/mario34/gulp-template
🛠 一个gulp的开发环境
https://github.com/mario34/gulp-template
Last synced: 28 days ago
JSON representation
🛠 一个gulp的开发环境
- Host: GitHub
- URL: https://github.com/mario34/gulp-template
- Owner: Mario34
- Created: 2019-02-28T11:32:07.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2023-01-03T17:00:54.000Z (about 2 years ago)
- Last Synced: 2024-10-31T19:36:52.269Z (3 months ago)
- Language: JavaScript
- Homepage:
- Size: 1.75 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 14
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## gulp 开发环境搭建
**注意** `gulp4`并不向下兼容老版本,但大部分API仍然可以使用
- sass自动编译
- 自动压缩css,js,html,image
- 热重载开发服务器
- babel语法转换### 开始
```bash
# 安装依赖
npm install# 运行gulp
# 开发模式(修改文件,热重载服务器)
npm run dev# 打包产品代码(压缩JS,HTML,CSS,image)
npm run build
# 打包产品代码 & 开启dist服务
npm run product
```