# tailwind-bundle

> Usually, Tailwind should be built on the fly. But sometimes, you need to bundle it up and save it.

Latest version **1.0.1** (published 2022-11-10) · ISC license · 0 weekly downloads

## Install

```sh
npm install tailwind-bundle
pnpm add tailwind-bundle
yarn add tailwind-bundle
bun add tailwind-bundle
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.1 |
| Published | 2022-11-10 |
| First published | 2022-11-10 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 3 |
| Unpacked size | 1.8 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Maintainers | gkoberger |

## Links

- npm: https://www.npmjs.com/package/tailwind-bundle
- npm.io page: https://npm.io/package/tailwind-bundle

## Dependencies (3)

- [postcss](https://npm.io/package/postcss.md) ^8.4.18
- [tailwindcss](https://npm.io/package/tailwindcss.md) ^3.2.3
- [postcss-prefixwrap](https://npm.io/package/postcss-prefixwrap.md) ^1.37.0

## Recent versions

- 1.0.1 (latest) — 2022-11-10
- 1.0.0 — 2022-11-10

## README

Usually, Tailwind should be built on the fly. But sometimes, you need to bundle it up and save it.

To install:

```bash
npm install tailwind-bundle --save
```

And the paramaters are:

```javascript
tailwind(html, config, tailwindConfig)
```

Here's som examples:

```javascript
const tailwind = require('tailwind-bundle');

const tailwindConfig = { ... }; // This is the config https://tailwindcss.com/docs/configuration (content is ignored)

tailwind('<div class="bg-blue-300"></div>', { selector: '.test' }, tailwindConfig).then(r => console.log(r.css));
```

Or you can await using:

```javascript
await tailwind('<div class="bg-blue-300"></div>', { selector: '.test' }, tailwindConfig);
```

Here's the `config` options:

  * **selector** Prefix each generated selector with this, for the sake of scoping (default: '')
  * **includeBase** This will include `@tailwind base`, which resets a lot of CSS (default: false)

---
_Source: https://npm.io/package/tailwind-bundle · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
