2.0.6 • Published 6 years ago
@ubbcou/react-scripts-mpa v2.0.6
react-scripts
This package includes scripts and configuration used by Create React App. Please refer to its documentation:
- Getting Started – How to create a new app.
- User Guide – How to develop apps bootstrapped with Create React App.
自定义结果
输出多页应用
在项目根目录的 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'
}
}