0.0.9 • Published 3 months ago

vite-plugin-nameof-ts5 v0.0.9

Weekly downloads
-
License
MIT
Repository
-
Last release
3 months 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

3 months ago

0.0.8

3 months ago

0.0.7

3 months ago

0.0.6

3 months ago

0.0.5

3 months ago

0.0.4

3 months ago

0.0.3

3 months ago

0.0.2

3 months ago

0.0.1

3 months ago