vite-plugin-mpa-plus icon indicating copy to clipboard operation
vite-plugin-mpa-plus copied to clipboard

filename is ignored

Open kluplau opened this issue 2 years ago • 1 comments

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

kluplau avatar May 31 '23 14:05 kluplau

I'm guessing that maybe the terminal logs are not printing correctly, the actual file location is correct.

image

yzydeveloper avatar Mar 12 '24 05:03 yzydeveloper