yzydeveloper / rspack-plugin-mpa

Mpa plugin for rspack

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

rspack-plugin-mpa

Install

pnpm install rspack-plugin-mpa

Usage

Example

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

About

Mpa plugin for rspack


Languages

Language:TypeScript 67.2%Language:HTML 17.6%Language:JavaScript 15.2%