You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am using bootstrap and to avoid getting all unused classes for my build folder, I am also using "postcss-purgecss" which removes unused classnames.
The problem is that webpack does not load my postcss config if there is no changed files by "watch", if I add "mt-5" classname for example, it will not detect this change because it is inside a ".twig" file and not "js or css". To be able to get the "mt-5" class i need to do some changes inside "assets" or re run the "npm run watch"...
It reloads the browser on each twig file change which is cool, but it does not reloads my assets, I need to change any css or js file to be able to get my classname built
I am using bootstrap and to avoid getting all unused classes for my build folder, I am also using "postcss-purgecss" which removes unused classnames.
The problem is that webpack does not load my postcss config if there is no changed files by "watch", if I add "mt-5" classname for example, it will not detect this change because it is inside a ".twig" file and not "js or css". To be able to get the "mt-5" class i need to do some changes inside "assets" or re run the "npm run watch"...
I tested this solution: https://symfony.com/doc/current/frontend/encore/dev-server.html#live-reloading-when-changing-php-twig-files
It reloads the browser on each twig file change which is cool, but it does not reloads my assets, I need to change any css or js file to be able to get my classname built
Originally posted by @sovetski in #1026 (comment)
The text was updated successfully, but these errors were encountered: