preact-cli-tailwind

3.0.0 • Public • Published

Preact CLI Tailwind CSS Plugin

npm

Adds Tailwind CSS to Preact CLI.

Tailwind is added as a PostCSS Plugin.

Usage

npm i preact-cli-tailwind tailwindcss --save-dev

# OR

yarn add preact-cli-tailwind tailwindcss --dev

In your preact.config.js:

const tailwind = require("preact-cli-tailwind");

module.exports = (config, env, helpers) => {
  config = tailwind(config, env, helpers);
  return config;
};

API

Pass in config, env and helpers as forwarded from config.

Contributing

PRs Welcome.

Dependencies (0)

    Dev Dependencies (6)

    Package Sidebar

    Install

    npm i preact-cli-tailwind

    Weekly Downloads

    14

    Version

    3.0.0

    License

    MIT

    Unpacked Size

    3.33 kB

    Total Files

    4

    Last publish

    Collaborators

    • agney