0.0.9 • Published 2 years ago

vite-plugin-nameof-ts5 v0.0.9

Weekly downloads
-
License
MIT
Repository
-
Last release
2 years ago

Usage

  1. Install as devDependencies

    npm add --save-dev vite-plugin-ts5-nameof
    # or
    yarn add --dev vite-plugin-ts5-nameof
    # or
    pnpm add --save-dev vite-plugin-ts5-nameof
  2. Inject vite-plugin-ts5-nameof using the vite.config.ts module

    import vue from '@vitejs/plugin-vue';
    import { defineConfig } from 'vite';
    import tsNameof from 'vite-plugin-ts5-nameof';
    
    // https://vitejs.dev/config/
    export default defineConfig({
      plugins: [tsNameof(), vue()],
    });
  3. Add ts5-nameof.d.ts to your tsconfig.json

    {
      // "compilerOptions"
      // "include"
      // ...
      "files": ["./node_modules/ts5-nameof/ts5-nameof.d.ts"]
    }

More Awesome Vite Plugins

Can be found here: Awesome Vite.js

0.0.9

2 years ago

0.0.8

2 years ago

0.0.7

2 years ago

0.0.6

2 years ago

0.0.5

2 years ago

0.0.4

2 years ago

0.0.3

2 years ago

0.0.2

2 years ago

0.0.1

2 years ago