@iamyangdan/vite-plugin-replace-import
TypeScript icon, indicating that this package has built-in type declarations

1.0.0 • Public • Published

@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

Readme

Keywords

none

Package Sidebar

Install

npm i @iamyangdan/vite-plugin-replace-import

Weekly Downloads

1

Version

1.0.0

License

MIT

Unpacked Size

11.9 kB

Total Files

8

Last publish

Collaborators

  • iamyangdan