1. ├── babel.config.js # Babel 配置
  2. ├── .eslintrc.js # ESLint 配置
  3. ├── config # 编译配置目录
  4. ├── dev.js # 开发模式配置
  5. ├── index.js # 默认配置
  6. └── prod.js # 生产模式配置
  7. ├── package.json # Node.js manifest
  8. ├── dist # 打包目录
  9. ├── project.config.json # 小程序项目配置
  10. ├── src # 源码目录
  11. ├── app.config.js # 全局配置
  12. ├── app.css # 全局 CSS
  13. ├── app.js # 入口组件
  14. ├── index.html # H5 入口 HTML
  15. └── pages # 页面组件
  16. └── index
  17. ├── index.config.js # 页面配置
  18. ├── index.css # 页面 CSS
  19. └── index.jsx # 页面组件,如果是 Vue 项目,此文件为 index.vue

入口组件

1.app.js

是入口文件

2.app.config.js

是总配置文件,在此配置所要添加的文件
image.png

  1. // 创建pages中的文件夹
  2. taro create --name xxx