0.0.9 • Published 2 years ago
@mb1337/vite-plugin-replace v0.0.9
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: "/"
}
]
})
]
}