npm.io
0.4.0 • Published 3 months ago

@malobre/vite-plugin-templates

Licence
MIT
Version
0.4.0
Deps
2
Size
7 kB
Vulns
0
Weekly
0

@malobre/vite-plugin-templates

Replace template tags with the content of the file specified in their src attribute, if any.

Usage

  1. Install npm install --save-dev @malobre/vite-plugin-templates
  2. Add plugin to your vite config
    import { defineConfig } from 'vite'
    import templates from '@malobre/vite-plugin-templates'
    
    export default defineConfig({
      plugins: [templates()],
    })