viteik
TypeScript icon, indicating that this package has built-in type declarations

1.0.3 • Public • Published

viteik

A shim to make working with Vite and Eik easy

install

pnpm add -D viteik

use

In vite.config.js

import { defineConfig } from 'vite'
import VitEik, { outputOptions } from 'viteik'

export default defineConfig({
  plugins: [VitEik()],
  // Any options for the Eik Rollup plugin can be passed to VitEik
  build: {
    rollupOptions: {
      input: './client/main.js',
      output: outputOptions
      // outputOptions is mostly telling Vite to stop using hashes
    }
  },
  server: {
    fs: { strict: true },
    middlewareMode: true
  }
})

Readme

Keywords

Package Sidebar

Install

npm i viteik

Weekly Downloads

682

Version

1.0.3

License

MIT

Unpacked Size

1.63 kB

Total Files

4

Last publish

Collaborators

  • pearofducks