vite-plugin-mpa-plus
vite-plugin-mpa-plus copied to clipboard
filename is ignored
I expected the page to be in the root and be called internal
This config
import { defineConfig } from "vite";
import react from "@vitejs/plugin-react";
import mpaPlugin from "vite-plugin-mpa-plus";
// https://vitejs.dev/config/
export default defineConfig({
build: {
outDir: "./dist",
assetsDir: "./assets",
},
plugins: [
react(),
mpaPlugin({
pages: {
internal: {
template: "src/sub/sub/sub/index.internal.html",
filename: "internal.html",
entry: "src/internal/index.tsx",
},
},
}),
],
});
Results in
dist/src/sub/sub/sub/index.internal.html
I'm guessing that maybe the terminal logs are not printing correctly, the actual file location is correct.