2.0.6 • Published 6 years ago

@ubbcou/react-scripts-mpa v2.0.6

Weekly downloads
-
License
MIT
Repository
github
Last release
6 years ago

react-scripts

This package includes scripts and configuration used by Create React App. Please refer to its documentation:

自定义结果

输出多页应用

在项目根目录的 package.json中填写

"customCongfigs": {
  "pages": {
    "index": {
      // page 的入口
      entry: 'src/index/main.js',
      // 模板来源
      template: 'public/index.html',
      // 在 dist/index.html 的输出
      filename: 'index.html',
      title: 'Index Page',
    },
    "subpage": 'src/subpage/main.js'
  }
}