0.0.9 • Published 2 years ago

@mb1337/vite-plugin-replace v0.0.9

Weekly downloads
-
License
MIT
Repository
github
Last release
2 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

2 years ago

0.0.3

2 years ago

0.0.2

2 years ago

0.0.9

2 years ago

0.0.5

2 years ago

0.0.1

2 years ago

0.0.10

2 years ago

1.0.0

2 years ago