vite.config.ts import { defineConfig } from "vite"; import inlineSource from "vite-plugin-inline-source"; export default defineConfig({ plugins: [ inlineSource(), ], }); style.css body { background-color: red; } index.html <html> <style inline-source src="style.css"></style> </...
Describe the bug Adding this script block to index.html immediately broke vite in dev mode after the script was added and the first time I tried to run in dev mode <script type="module"> import {TestDocument, TestHostConfig} from '/src/T...
A Vite plugin which inlines source files in HTML files where the inline-source attribute is present. This is similar in premise to vite-plugin-singlefile, but allows you to control which assets are inlined.This plugin was heavily influenced by markup-inline-loader for webpack. I wanted the ...
vite.config.ts import { defineConfig } from "vite"; import inlineSource from "vite-plugin-inline-source"; export default defineConfig({ plugins: [ inlineSource(), ], }); style.css body { background-color: red; } index.html <html> <style inline-source src="style.css"></style> </...