dxp_react_template

cnpm install ## 第二步 启动项目 npm start or yarn start ## 第三步 打包项目 npm run build or yarn build ### 目录结构<br> ├── README.md <br> ├── config 配置文件<br> │   ├── env.js <br> │   ├── jest <br> │   ├── modules.js<br> │   ├── paths.js<br> │   ├── pnpTs.js<

Usage no npm install needed!

<script type="module">
  import dxpReactTemplate from 'https://cdn.skypack.dev/dxp_react_template';
</script>

README

本项目基于create-react-app脚手架改写

第一步 安装类库

cnpm install

第二步 启动项目

npm start or yarn start

第三步 打包项目

npm run build or yarn build 

目录结构

├── README.md
├── config 配置文件
│   ├── env.js
│   ├── jest
│   ├── modules.js
│   ├── paths.js
│   ├── pnpTs.js
~~~~ │   ├── webpack.config.js
│   ├── webpack.module.js
│   ├── webpack.plugins.js
│   └── webpackDevServer.config.js
├── package.json
├── public 存放index.html,以及离线应用配置文件,icon存放
│   ├── favicon.ico
│   ├── index.html
│   └── manifest.json
├── scripts 配置运行文件
│   ├── build.js
│   ├── start.js
│   └── test.js
├── src 代码开发部分
│   ├── assets 资源存放
│   ├── components 组件自定义插件
│   ├── fetch 接口请求axios
│   ├── index.js 项目入口
│   ├── router 项目路由
│   ├── serviceWorker.js 服务线程文件(可以忽略)
│   ├── store 状态存储
│   └── views 存放组件