0.0.9 • Published 3 years ago

@mb1337/vite-plugin-replace v0.0.9

Weekly downloads
-
License
MIT
Repository
github
Last release
3 years ago

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: "/"
        }
      ]
    })
  ]
}
0.0.0

3 years ago

0.0.3

3 years ago

0.0.2

3 years ago

0.0.9

3 years ago

0.0.5

3 years ago

0.0.1

3 years ago

0.0.10

3 years ago

1.0.0

3 years ago