sysolution/README.md
2024-04-02 17:38:33 +08:00

38 lines
872 B
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

## 简介
采用 Gulp 4.0.2 搭建的 js 自动构建任务项目
## 安装使用
请先安装**Node 14 和 Npm**,安装过程略过。
- 安装依赖
```bash
npm i
```
- 运行
```bash
npm run dev
```
- 打包
```bash
npm run build
```
## 目录介绍
- dist打包结果目录
- src源码目录
- src/modules公共 html 目录,此目录的 html 不会出现在打包结果中,此目录的 html 中引入 css 或者 js请使用绝对路径如/js/xxx.js /css/xxx.css其他资源如图片也是如此
- src/csscss 源码
- src/jsjs 源码
- src/static静态文件如第三方库第三方样式等可以放在此处打包时不会进入文件转换流程会直接复制到打包结果中
- src/index.html网站入口
- config.js打包配置
- gulpfile.jsgulp 构建流程