maizzle / jit-object-config

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

About

This repo reproduces the issue described here:

tailwindlabs/tailwindcss#4094

Getting Started

  1. Make sure you have the Maizzle CLI installed:
# install the CLI globally
npm i -g @maizzle/cli
  1. Clone this repo:
git clone https://github.com/maizzle/jit-object-config
  1. npm install dependencies

  2. Build for production:

maizzle build production

The build should hang.

If you edit tailwind.config.js and use the simplified array syntax purge instead of the object one, it'll work.

To check the Tailwind config object that is being used, you can edit node_modules/@maizzle/framework/src/generators/tailwindcss.js and add this just before the return statement:

console.log(merge(coreConfig, tailwindConfigObject))

About

License:MIT License


Languages

Language:HTML 73.6%Language:JavaScript 22.3%Language:CSS 4.1%