Skip to content

A tool to use the ETA template loader with Unplugin

Notifications You must be signed in to change notification settings

storipress/unplugin-eta

Repository files navigation

@storipress/unplugin-eta

Storipress NPM version link MIT License

Eta template loading plugin for Vite, Webpack, Rollup, and esbuild. Powered by unplugin.

Installation

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