基于gulp构建的官网项目脚手架
基于gulp构建的官网项目脚手架
//开发环境
npm start||npm run dev
//构建打包
npm run build
<img src="../imgs/123.jpeg" alt="">
├── README.md
├── dev //开发环境打包代码
├── dist //生产环境打包代码
├── favicon.ico
├── gulp //gulp配置
├── gulpfile.babel.js //babel配置
├── package.json
├── src
│ ├── html //index入口文件
│ │ ├── ejs
│ │ │ └── footer.ejs
│ │ └── index.html
│ ├── imgs //图片
│ │ └── 123.jpeg
│ ├── js //js
│ │ ├── index.js
│ │ └── moduleA.js
│ ├── lang //国际化语言文件
│ │ ├── en.json
│ │ └── zh-cn.json
│ ├── scss //sass文件
│ │ ├── common
│ │ │ └── _reset.scss
│ │ └── index.scss
│ └── static //静态文件
│ └── jquery-3.2.1.min.js
└── user.config.js.config //开发配置文件