agneym / preact-cli-tailwind

Preact CLI Plugin that helps add Tailwind CSS to your project

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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.

About

Preact CLI Plugin that helps add Tailwind CSS to your project

License:MIT License


Languages

Language:JavaScript 89.5%Language:Shell 10.5%