Closed back-2-95 closed 9 months ago
Issue remains.
var/tailwind/tailwind.build.css
is updatedpublic/assets/styles/app-hash.css
is NOT updatedwhen running bin/console tailwind:build --watch
I also checked that my Docker setup does not affect this. Same happens when I run that command on host and on container.
@back-2-95 If you want to see the changes in the browser without compiling your assets every time after change, you should enable the "dev server" for the asset mapper (enabled by default only in "debug" mode)
See: bin/console config:dump framework asset_mapper.server
When this "dev server" is enabled, assets are handled by symfony (they must not exist in the filesystem - remove publis/assets) - https://symfony.com/doc/current/frontend/asset_mapper.html#serving-assets-in-dev-vs-prod
@fracsi Thank you very much, now I got it working! framework.asset_mapper_server: true
was the key!
Cool! Glad this got solved!
I have watch mode running with in my Symfony 7.0.0-BETA3 project:
It will successfully build
var/tailwind/tailwind.build.css
with any changes toassets/styles/app.css
.BUT when refreshing the app in browser, changes don't get updated. When I check
public/assets/styles/app-HASH.css
it has not been updated.In
base.html.twig
I have following insidewhich will create following markup:
I also tried this as mentioned in the documention but to no luck:
So I need to manually run these to get CSS updated: