@reactea/tailwind
v1.0.0-alpha.3
Published
Tailwind support for Reactea.
Downloads
1
Readme
@reactea/tailwind
This package provides a configuration function that can be used to integrate Tailwind CSS with @reactea/config
.
Usage
- Install the
@reactea/tailwind
package:
npm install -D @reactea/tailwind
- Add the configuration to your webpack configuration file:
import { compileConfig, createConfig, extendConfig } from "@reactea/config";
import baseConfig from "@reactea/core";
import tailwindConfig from "@reactea/tailwind";
const reactea = createConfig();
extendConfig(reactea, baseConfig());
extendConfig(reactea, tailwindConfig());
const config = compileConfig(reactea);
export default config;
Configuration
The tailwindConfig()
function returns a ReacteaConfig
object that can be passed to createConfig()
and used to configure @reactea/config
.
The configuration adds tailwindcss
as a PostCSS plugin to the configuration.