@iamyangdan/vite-plugin-replace-import
v1.0.0
Published
---
Downloads
1
Readme
@iamyangdan/vite-plugin-replace-import
Installation
Now this plugin supports both Vite 2.x and 3.x. Just install it:
npm i -D @iamyangdan/vite-plugin-replace-import
pnpm i -D @iamyangdan/vite-plugin-replace-import
yarn add -D @iamyangdan/vite-plugin-replace-import
Usage
// vite.config.js
import ViteReplaceImport from '@iamyangdan/vite-plugin-replace-import';
export default {
plugins: [ViteReplaceImport()],
};
// vite.config.js
import ViteReplaceImport from '@iamyangdan/vite-plugin-replace-import';
export default {
plugins: [
ViteReplaceImport({
disabled: false,
queryKey: 'replace',
}),
],
};
License
MIT