npm.io
1.0.20 • Published 3d ago

vite-plugin-inline-multipage

Licence
MIT
Version
1.0.20
Deps
2
Size
5 kB
Vulns
0
Weekly
0

This is intended for svelte, I have not tested this package on other platforms. This plugin will take a page structure, like in src/routes in svelte, and turn them into a inlined html file, which is great if you dont want a singular html file for everything (and a hash router)

E.g with vite.config.ts

import { sveltekit } from '@sveltejs/kit/vite';
import { defineConfig } from 'vite';
import inlineEverythingPlugin from 'vite-plugin-inline-multipage';

export default defineConfig({
  base: './',
  plugins: [
    sveltekit(),
    inlineEverythingPlugin()
  ]
});

Keywords