Skip to content

defineIgniteConfig

defineIgniteConfig declares how Ignite Element should behave across your project. The Vite/Webpack plugins auto-import this file; otherwise import it near your app entry.

ignite.config.ts
import { defineIgniteConfig } from 'ignite-element/config';
export default defineIgniteConfig({
renderer: 'ignite-jsx',
strategy: 'diff',
styles: new URL('./styles.css', import.meta.url).href,
logging: 'warn',
});

Options

  • renderer: "ignite-jsx" (default) or "lit".
  • strategy: "diff" or "replace" render mode.
  • styles: string URL or { href, integrity?, crossOrigin? } injected into each component’s shadow root.
  • logging: "off" | "warn" | "debug".

Place this file at the project root so bundler plugins can find it.