Skip to content
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

Template files are not watched #76

Open
cah4a opened this issue May 22, 2021 · 3 comments
Open

Template files are not watched #76

cah4a opened this issue May 22, 2021 · 3 comments

Comments

@cah4a
Copy link

cah4a commented May 22, 2021

When I change a template file nothing happens.

I'm using webpack and twig as a template engine.
I've tried both windicss-webpack-plugin and postcss-windicss.

The behavior is the same for both of these integration methods:
It extracts only on startup and never runs extraction again.

I understand that webpack doesn't know about my templates, so I've added 'webpack-watch-files-plugin' to trigger rebuild.

Any workarounds in that case?

@voorjaar voorjaar transferred this issue from windicss/windicss May 24, 2021
@harlan-zw
Copy link
Member

Hi @cah4a

Can you share your windi and webpack config, ideally with a replication repo.

Thanks

@harlan-zw
Copy link
Member

Also, I don't think windi supports twig, only pug at the moment 🤔

Happy to look into this further but I'll need a reproduction repo, will close until there is one.

@travis-r6s
Copy link

@harlan-zw I have the same issue with Edge templates (using Adonis & Webpack). I have created a reproduction repo here: https://github.com/thetre97/adonis-windicss-webpack

git clone [email protected]:thetre97/adonis-windicss-webpack.git
cd adonis-windicss-webpack
cp .env.example .env

Then install deps & run the develop command. On first load it will correctly add the styles, but if you go to resources/views/welcome.edge and edit any of the classes there, it doesn't seem to reload.

I have tried using Tailwind, and it works correctly with that, so am presuming it is a Windi issue - it's maybe not specifically this plugin, as I have also tried the postcss plugin with the same results, and have also tried it with .vue files (using Inertia) and have the exact same issue there.

@harlan-zw harlan-zw reopened this Dec 30, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants