@muryp/vite-html
TypeScript icon, indicating that this package has built-in type declarations

1.0.1 • Public • Published

HTML & CSS minify on template literal

Install

pnpm add -D @muryp/vite-html

configs

types

// src/index.d.ts
declare global {
  function html(
    e: TemplateStringsArray,
    ...a: Array<string | number | (string | number)[]>
  ): string
  type Targs = {
    name?: string
    type?: string
  }
}
export {}

vite

// vite.config.js
import { defineConfig } from 'vite'
import htmlPlug from '@muryp/vite-html/vite'

export default defineConfig({
  plugins: [htmlPlug()],
})

Astro

// astro.config.js
import { defineConfig } from 'astro/config'
import murypAstroMinify from '@muryp/vite-html/astro'

export default defineConfig({
  integrations: [murypAstroMinify()],
})

Package Sidebar

Install

npm i @muryp/vite-html

Weekly Downloads

61

Version

1.0.1

License

MIT

Unpacked Size

7.68 kB

Total Files

11

Last publish

Collaborators

  • alifprihantoro