Create React apps with no build configuration, extended with TailwindCSS and PurgeCSS

  • By Demian Dekoninck
  • Last update: Feb 13, 2022
  • Comments: 2

Create React App, included with TailwindCSS and PurgeCSS

Create React apps with no build configuration.

Installation

npx create-react-app --scripts-version=react-scripts-tailwindcss my-app
cd my-app
npm start

Versions

We try to make a version with TailwindCSS every few releases of create-react-app.

Github

https://github.com/DemianD/create-react-app-tailwindcss

Comments(2)

  • 1

    Request to update tailwind to 1.x

    It is not a bug but it would be nice to have the packages in the latest version, specially because of the color naming changes and the grey / gray.

    After manually trying to npm install tailwindcss@^1.0 --save-dev, the app doesn't run anymore.

  • 2

    `Could not locate supplied template: $PWD/cra-template`

    I noticed that it uses the latest CRA (Create-React-App) which now it's v3.4.1 but it seemed to be working until v3.2 or maybe v3.3, I noticed some other issues at create-react-app with the same error.

    How to reproduce:

    As soon as you run npx create-react-app --scripts-version=react-scripts-tailwindcss my-app, you will get every package installed, folder created but no src or public folders inside, the last verbose message is: Could not locate supplied template: $PWD/cra-template.

    $PWD means my current path.