Eta template loading plugin for Vite, Webpack, Rollup, and esbuild. Powered by unplugin.
NPM:
$ npm install --save-dev @storipress/unplugin-eta
Yarn:
$ yarn add --dev @storipress/unplugin-eta
Vite
// vite.config.ts
import { defineConfig } from 'vite'
import EtaPlugin from '@storipress/unplugin-eta/vite'
export default defineConfig({
plugins: [EtaPlugin()],
})
Webpack
// webpack.config.js
module.exports = {
plugins: [require('@storipress/unplugin-eta').default()],
})
Rollup
// rollup.config.js
import EtaPlugin from '@storipress/unplugin-eta/rollup'
export default {
plugins: [EtaPlugin()],
}