Skip to content
● Critical PHP security fixes are out: update PHP on your Grav sites. What to do →

assets.removeJS was removed, how to remove JS file from Grav\Common\Assets?

plugins

Started by Hung Tran 6 years ago · 0 replies · 750 views
6 years ago

In the past Grav\Common\Assets had functions "removeJS" and "removeCSS" to remove JS and CSS files from Grav's assets. I used "removeJS" function to remove other plugins' JS files and added my own JS files, this was how I overrode JS files from other plugins.

However, in the recent version of Grav, "removeJS" and "removeCSS" functions are no longer available in Grav\Common\Assets any more. I wonder how do we remove unwanted JS and CSS from Grav's assets now?

Suggested topics

Topic Participants Replies Views Activity
Plugins · by DrPen, 2 days ago
2 79 53 minutes ago
Plugins · by renedebaaij, 1 week ago
1 134 3 days ago
Plugins · by Thomas, 6 days ago
1 144 5 days ago
Plugins · by complanar, 4 weeks ago
6 471 3 weeks ago
Plugins · by BenLaKnet, 3 weeks ago
1 294 3 weeks ago