阿西河

所有教程

公众号
🌙
阿西河前端的公众号

我的收藏

    最近访问  (文章)

      教程列表

      抓包专区
      测试专区

      react-pwa 学习笔记

      react-pwa

      官方资料

      快速开始

      克隆存储库:

      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
      }
      
      目录
      目录