https://github.com/sparkinzy/juyuan-gulp-tpl
聚源gulp应用模版
https://github.com/sparkinzy/juyuan-gulp-tpl
Last synced: 23 days ago
JSON representation
聚源gulp应用模版
- Host: GitHub
- URL: https://github.com/sparkinzy/juyuan-gulp-tpl
- Owner: Sparkinzy
- Created: 2018-11-07T07:18:17.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2018-11-19T07:33:44.000Z (over 7 years ago)
- Last Synced: 2025-02-24T03:17:26.514Z (over 1 year ago)
- Language: JavaScript
- Size: 227 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: Readme.md
Awesome Lists containing this project
README
# 聚源gulp应用初始化模版
# 测试gulp的打包加密
```sh
npm install -g gulp
npm install -g uglify-js # js压缩混淆
npm install --save-dev gulp
npm install --save-dev gulp-sequence # 任务队列执行
npm install --save-dev gulp-clean-css # css 压缩
npm install --save-dev gulp-autoprefixer # css 自动前缀
npm install --save-dev gulp-livereload # 实时预览工具
npm install --save-dev gulp-uglify # js压缩混淆
npm install --save-dev gulp-imagemin # 图片压缩
npm install --save-dev gulp-htmlmin # html模版页面压缩
npm install --save-dev gulp-clean # 文件夹清理
npm install --save-dev gulp-rev # 添加版本 js css img
npm install --save-dev gulp-rev-collector # gulp-rev 的插件,用于html模板更改引用路径
# npm install --save-dev jshint gulp-jshint # js 语法检查 ,下载太慢,没用
npm install --save-dev gulp-plumber # 错误拦截,防止被错误打断
# 开发阶段,监听变动
gulp watch
# 生成正式版
gulp
```