@malobre/vite-plugin-templates
v0.1.0
Published
Import partials into HTML files
Downloads
2
Readme
@malobre/vite-plugin-templates
Replace template
tags with the content of the file specified in their src
attribute, if any.
Usage
- Install
npm install --save-dev @malobre/vite-plugin-templates
- Add plugin to your vite config
import { defineConfig } from 'vite' import templates from '@malobre/vite-plugin-templates' export default defineConfig({ plugins: [templates()], })