tsup-plugin-unocss
v0.2.3
Published
tsup plguin for unocss
Downloads
5
Readme
tsup-plugin-unocss
An tsup plugin which uses babel build css and js.
❤️ 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.