zst
前端构建工具
Installation
npm install zst -g
make sure zst installed, you an use zst --version
Purpose
The intention of this project is provide a tool that make managing the fe develop.
Features
develop
Realize livereload: When you are in development environment, this tool will help you to refresh the html when files changed.
production
- bundle css/js;
- add timestamp;
- generate new html without annotation
- copy favicon.ico
Pattern
- pc
when you use pc pattern, you must setconfig.isPhone = false
in zst.config.js - phone
when you use phone pattern, you must setconfig.isPhone = true
in zst.config.js
API
Publish: zst dist
Develop: zst dev