stencil-community / stencil-postcss

Autoprefixer plugin for Stencil
https://www.npmjs.com/package/@stencil-community/postcss
Other
30 stars 24 forks source link

Handle dependency messages #35

Closed bradlc closed 2 years ago

bradlc commented 3 years ago

This pull requests adds support for PostCSS dependency messages, which are used by plugins to register file dependencies. Documentation: https://github.com/postcss/postcss/blob/main/docs/guidelines/runner.md#3-dependencies

Note that there is also a dir-dependency message type but I am not sure how/if Stencil can support this.

dtaalbers commented 3 years ago

Can we get this PR merged @claviska? I'd like to see the official Tailwind CSS support for Stencil JS. I believe they are waiting for this PR to be merged. Would be awesome if we can get this going!

claviska commented 3 years ago

@dtaalbers I no longer have any affiliation with Stencil or the company that maintains it.

dtaalbers commented 3 years ago

@claviska Oh thats my bad. Sorry to bother you!

adamwathan commented 3 years ago

Just a follow-up from someone else on the Tailwind team — Stencil won't work properly out of the box with the JIT engine until it supports both dependency and dir-dependency messages, so even if this is merged we will still need to figure out dir-dependency support.

snaptopixel commented 2 years ago

FYI, here's a local dev process that is working well for me (admittedly with a specific use case) which allows JIT and HMR

Prerequisites

How it works

splitinfinities commented 2 years ago

Hey thanks @adamwathan for the direction! I'm going to do some research on dir-dependency and what we need to get it shipped.

splitinfinities commented 2 years ago

Prereleased v2.1.0-0 and added https://github.com/ionic-team/stencil-postcss/issues/38 to investigate the dir-dependency messages. I'd love to get Tailwind's v2 JIT working within a Shadow DOM context and across the board. If anyone has tips or tricks to help get us there, I'd really appreciate it!