react-pwa 学习笔记
🌙
手机阅读
本文目录结构
react-pwa
官方资料
- website: https://www.reactpwa.com/
- Github: https://github.com/stereobooster/react-snap
快速开始
克隆存储库:
git clone https://github.com/Atyantik/react-pwa.git && cd react-pwa
安装依赖项:
npm install
要启动项目,请在终端中运行以下命令:
npm start
要构建项目,请在终端中运行以下命令:
npm run build
Directory
project-root
|-- /dist/ # The folder for compiled output
|-- /node_modules/ # 3rd-party libraries and utilities
|-- /src/ # The source code of the application
| |-- /routes.js # Page/screen components along with the routing information
| |-- /client.js # Client-side startup script
| |-- /server.js # Server-side startup script
| |__ /webpack.js # Extending the compilation properties of pawjs
|-- package.json # The list of 3rd party libraries and utilities
|__ pawconfig.json # Config file for PawJS
配置
{
"port": "3003",
"host": "0.0.0.0",
"appRootUrl": "/",
"serviceWorker": false,
"serverSideRender": true,
"singlePageApplication": false
}