@axel669/rollup-copy-static
v0.1.2
Published
Small plugin to copy static files when building with rollup.
Downloads
31
Readme
rollup-copy-static
Small plugin to copy static files when building with rollup.
Installation
yarn add @axel669/rollup-copy-static
Usage
Default export is a function that takes the source directory of the static files. I let rollup decide where the output dir is with some magic. Path is relative to the dir where the script is run (like other rollup options).
import copyStatic from "@axel669/rollup-copy-static"
export default {
input: "app/main.mjs",
output: {
file: "build/app.mjs",
format: "esm",
},
plugins: [
copyStatic("static")
]
}
Credits
Bayonetta Image: Aleksandra Skiba