https://github.com/michealpearce/vite-plugin-ejs-importer
https://github.com/michealpearce/vite-plugin-ejs-importer
Last synced: 5 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/michealpearce/vite-plugin-ejs-importer
- Owner: MichealPearce
- License: mit
- Created: 2022-12-30T02:16:31.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2023-07-14T05:22:36.000Z (about 2 years ago)
- Last Synced: 2024-05-28T19:09:24.273Z (over 1 year ago)
- Language: TypeScript
- Size: 33.9 MB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# vite-plugin-ejs-importer
a plugin for vite that allows importing `.ejs` files as strings
install:
```bash
# for yarn
yarn add -D vite-plugin-ejs-importer# for npm
npm install -D vite-plugin-ejs-importer
```usage:
```javascript
import { defineConfig } from 'vite'
import { VitePluginEJSImporter } from 'vite-plugin-ejs-importer'export default defineConfig({
plugins: [VitePluginEJSImporter()],
})
```