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 ...
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...
@vitejs/plugin-react: ^1.0.7 =>1.1.3 vite: ^2.7.2 =>2.7.9 Used Package Manager yarn Logs [vite:html-inline-proxy] Could not load /Users/zxbing0066/Workspace/contribute/vite-demo/index.html?html-proxy&index=0.js (imported by index.html): Cannotreadproperty'0'of undefined Validations ...
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> </...
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> </...
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 ...