Skip to content

typlog/theme-dev-plugin

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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`,
    }
  }
})

About

A vite plugin for Typlog theme development

Resources

License

Stars

Watchers

Forks

Packages

No packages published