tsup-plugin-unocss
TypeScript icon, indicating that this package has built-in type declarations

0.2.3 • Public • Published

tsup-plugin-unocss

An tsup plugin which uses babel build css and js.

NPM version

❤️ Usage

Install tsup and the plugin

npm install -D tsup
npm install -D tsup-plugin-unocss

or

pnpm add -D tsup
pnpm add -D tsup-plugin-unocss

Set up a build script

import { defineConfig } from 'tsup';
import esbuildPluginUnocss from 'tsup-plugin-unocss'

async function myBuilder(){
  const buildResult = await defineConfig({
    entry:[index.ts]
    esbuildPlugins: [
      esbuildPluginUnocss({
        alias: '.',
      })
    ],
  });
}

Run your builder.

Readme

Keywords

Package Sidebar

Install

npm i tsup-plugin-unocss

Weekly Downloads

3

Version

0.2.3

License

MIT

Unpacked Size

13.9 kB

Total Files

6

Last publish

Collaborators

  • songwuk