A rollup plugin for the npm inline-source tool that inlines flagged js, css, and img sources in html
npm install rollup-plugin-inline-source``sh`
npm i rollup-plugin-inline-source -D
`js
import { rollup } from 'rollup';
import rollupInlineSource from 'rollup-plugin-inline-source';
rollup({
entry: 'main.js',
plugins: [
rollupInlineSource()
]
});
``
SVGhtml`
Raw HTML
`html`
Outputted HTML
`html``
MIT ©