I have been trying to get Preact and Tailwind to work together using the README file. I have it working but when I run 'npm run build' it takes a minute or so to build. But the output CSS files are about 3MB in size.
My question is if this tool is designed to optimize the production build? Or this is what I get.
This is a new build created like this:
npx preact-cli create simple myproject
cd myproject
npm i tailwindcss
npm -D i preact-cli-tailwind
I also preact.config.js as described and imported tailwind into src/styles.css (Added: @tailwind base;@tailwind components;@tailwind utilities)
This project only helps setup tailwindcss as a postcss plugin on preact project. Any sort of optimisation is handled on tailwind.config file. Read tailwind docs for more information.
Hi
I have been trying to get Preact and Tailwind to work together using the README file. I have it working but when I run 'npm run build' it takes a minute or so to build. But the output CSS files are about 3MB in size.
My question is if this tool is designed to optimize the production build? Or this is what I get.
This is a new build created like this:
I also preact.config.js as described and imported tailwind into src/styles.css (Added: @tailwind base;@tailwind components;@tailwind utilities)
The versions running from package.json is: