Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/guocailee/craco-multiple-page
https://github.com/guocailee/craco-multiple-page
Last synced: about 1 month ago
JSON representation
- Host: GitHub
- URL: https://github.com/guocailee/craco-multiple-page
- Owner: guocailee
- License: mit
- Created: 2021-08-27T03:23:34.000Z (over 3 years ago)
- Default Branch: master
- Last Pushed: 2022-09-08T06:51:53.000Z (over 2 years ago)
- Last Synced: 2024-11-05T09:10:01.844Z (about 2 months ago)
- Language: TypeScript
- Size: 175 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# craco-multiple-pages
## Install
```bash
# npm
npm install -D craco-multiple-page
# or yarn
yarn add craco-multiple-page -D
```## Usage
```javascript
// define in craco config file, such like: craco.config.{js, ts}
const CracoMultiplePage = require('craco-multiple-page')
module.exports = {
plugins: [
{
plugin: CracoMultiplePage,
options: {
pages: [
{
name: 'index',
template: './src/pages/auth/index.html',
entry: './src/pages/auth/index.tsx',
},
{
name: 'app',
template: './src/pages/app/index.html',
entry: './src/pages/app/index.tsx',
},
],
},
},
]
}
```