Skip to content

Latest commit

 

History

History
58 lines (45 loc) · 1.42 KB

README.md

File metadata and controls

58 lines (45 loc) · 1.42 KB

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