@mb1337/vite-plugin-replace
v0.0.9
Published
Replace strings in files while bundling.
Downloads
1
Readme
Vite Plugin Replace
A Vite plugin which replaces targeted strings in files while bundling.
Installation
npm i @mb1337/vite-plugin-replace --save-dev
Usage
import { vitePluginReplace } from "@mb1337/vite-plugin-replace"
export default {
plugins: [
vitePluginReplace({
replacements: [
{
from: "__BASE__",
to: "/"
},
{
from: /__BASE__/g,
to: "/"
}
]
})
]
}