Skip to content

Using vite vanilla js+tailwindcss in JIT mode + vite-handlebars-plugin: changes in partials doesn't trigger postcss #8784

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
7 tasks done
carrrramba opened this issue Jun 25, 2022 · 2 comments

Comments

@carrrramba
Copy link

Describe the bug

This seems similar behaviour to the plugin-vue fix #6987 and the described bug with pug templating in #4588

In dev server mode: if i add tailwind css classes to a handlebars template file, the css doesn't get updated. (postcss doesn't get called?). As soon as i change/reload the html file that includes the partial, the css get's updated.
Demo on stackblitz: https://stackblitz.com/edit/vitejs-vite-acozht?file=index.html

...hope this helps :)

Reproduction

https://stackblitz.com/edit/vitejs-vite-acozht?file=index.html

System Info

System:
    OS: macOS Mojave 10.14.6
    CPU: (8) x64 Intel(R) Core(TM) i7-4770HQ CPU @ 2.20GHz
    Memory: 1.47 GB / 16.00 GB
    Shell: 3.2.57 - /bin/bash
  Binaries:
    Node: 14.19.1 - ~/.nvm/versions/node/v14.19.1/bin/node
    npm: 6.14.16 - ~/.nvm/versions/node/v14.19.1/bin/npm
  Browsers:
    Chrome: 102.0.5005.115
    Firefox: 101.0.1
    Safari: 12.1.2
  npmPackages:
    vite: ^3.0.0-beta.2 => 3.0.0-beta.2

Used Package Manager

npm

Logs

No response

Validations

@jonatanklosko
Copy link

@sapphi-red
Copy link
Member

Yes, it is expected that this happens if handleHotUpdate returns [].

Closing as it is not a bug in Vite.

@sapphi-red sapphi-red closed this as not planned Won't fix, can't repro, duplicate, stale Jul 5, 2022
@github-actions github-actions bot locked and limited conversation to collaborators Jul 20, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants