npm

Need private packages and team management tools?Check out npm Orgs. »

@ubbcou/react-scripts-mpa

2.0.6 • Public • Published

react-scripts

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

自定义结果

输出多页应用

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

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'
  }

Keywords

none

install

npm i @ubbcou/react-scripts-mpa

Downloadsweekly downloads

3

version

2.0.6

license

MIT

homepage

github.com

repository

Gitgithub

last publish

collaborators

  • avatar
Report a vulnerability