0.1.0 • Published 1 year ago

@malobre/vite-plugin-templates v0.1.0

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

@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()],
    })
0.1.0

1 year ago