rollup-include-static-resource-plugin
v2.0.1
Published
Include a static resource with rollup.
Downloads
9
Readme
rollup-include-static-resource-plugin
Include a static resource with rollup.
Example usage:
import file from "includeStaticResource:./file.html"
console.log(file)
Would include ./file.html
relative to the location of the importee.
Example rollup.config.mjs:
import includeStaticResourcePlugin from "rollup-include-static-resource-plugin"
export default {
input: "./src/index.mjs",
output: {
file: "./bundle.mjs",
format: "es"
},
plugins: [includeStaticResourcePlugin()]
}