Skip to content

Latest commit

 

History

History
32 lines (28 loc) · 592 Bytes

File metadata and controls

32 lines (28 loc) · 592 Bytes

theme-dev-plugin

A vite plugin for Typlog theme development.

import { defineConfig } from "vite"
import tailwind from "@tailwindcss/vite"
import { themeDevServer } from "@typlog/theme-dev-plugin/vite"

export default defineConfig({
  plugins: [
    tailwind(),
    themeDevServer(),
  ],
  build: {
    minify: true,
    cssCodeSplit: true,
    outDir: 'static',
    lib: {
      entry: [
        'src/index.js',
        'src/index.css',
        'src/content.css',
        'src/page.css',
      ],
      formats: ['es'],
      fileName: (_, name) => `${name}.js`,
    }
  }
})