Adds Tailwind CSS to Preact CLI.
Tailwind is added as a PostCSS Plugin.
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;
};
Pass in config
, env
and helpers
as forwarded from config.
PRs Welcome.