Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/jvidalv/parcel2-tailwind-preact-typescript-example-2021

Example project that bundles Parcel 2 +Tailwind/jit + Preact + TypeScript.
https://github.com/jvidalv/parcel2-tailwind-preact-typescript-example-2021

parcel postcss preact tailwind tutorials typescript

Last synced: 3 days ago
JSON representation

Example project that bundles Parcel 2 +Tailwind/jit + Preact + TypeScript.

Awesome Lists containing this project

README

        

# Parcel 2, Tailwind & Tailwind/jit with Preact and TypeScript

## Why
We are in 2021, and it is almost impossible to find an entire functional project with this configuration and working as expected.

The problems you may encounter in Parcel 2 are related to transpilation (it uses Babel, and you must force it to use `tsc` otherwise it skips `tsconfig.js`) as well as problems with PostCSS versions (Tailwind requires version 8).

Also, Preact presents complexity with aliases.

This project brings all these tools together:

- parcel: "^2.0.0-nightly.632"
- tailwindcss: "^2.0.4"
- @tailwindcss/jit: "^0.1.17"
- typescript: "^4.2.3"
- preact: "^10.5.13"

## How

To get started run `yarn start`.