Skip to content
Grav 2.1 is out: every page speaks Markdown. Read the announcement →

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

plugins

Started by Hung Tran 6 years ago · 0 replies · 672 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 complanar, 2 weeks ago
2 249 4 days ago
Plugins · by Vladimir Novak, 1 month ago
3 594 1 month ago
Plugins · by Mathieu Lecouturier, 2 months ago
3 415 2 months ago
Plugins · by Slebeig, 2 months ago
1 529 2 months ago
Plugins · by Rene, 3 months ago
2 729 3 months ago