Is there any way of disabling a stylesheet in view.yml for a specific action in Symfony?
For example I've got this in my view.yml:
default:
stylesheets: [default.css]
I want to be able to do something like:
displaySuccess:
stylesheet: [!default.css]
to disable default.css in displaySuccess only
Is this possible or do I have to explicitly say which modules/actions should have default.css?
You can remove or add stylesheets to a modules view.yml by doing the following:
displaySuccess:
stylesheet: [-default]
would remove default.css from the display action. Simply putting
displaySuccess:
stylesheet: [-*]
would remove all stylesheets.