https://github.com/yzydeveloper/rspack-plugin-mpa
Mpa plugin for rspack
https://github.com/yzydeveloper/rspack-plugin-mpa
Last synced: 11 months ago
JSON representation
Mpa plugin for rspack
- Host: GitHub
- URL: https://github.com/yzydeveloper/rspack-plugin-mpa
- Owner: yzydeveloper
- Created: 2023-05-14T14:57:56.000Z (almost 3 years ago)
- Default Branch: master
- Last Pushed: 2023-05-14T15:17:48.000Z (almost 3 years ago)
- Last Synced: 2025-01-23T20:22:43.110Z (about 1 year ago)
- Language: TypeScript
- Size: 65.4 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# rspack-plugin-mpa
## Install
```bash
pnpm install rspack-plugin-mpa
```
## Usage
[Example](./example/rspack.config.js)
```javascript
const { default: MpaPlugin } = require('rspack-plugin-mpa')
module.exports = {
// ...
plugins: [
new MpaPlugin({
pages: {
app1: {
entry: './src/app/app1/main',
title: 'Rspack Plugin Mpa',
minify:true
},
app2: {
entry: './src/app/app2/main',
title: 'Rspack Plugin Mpa',
minify:true
}
}
})
]
}
```
## Config
For more configurations, please refer to [@rspack/plugin-html](https://github.com/web-infra-dev/rspack/blob/main/packages/rspack-plugin-html/README.md)