Skip to content
Grav 2.0 is officially stable. Read the announcement →

Community guidelines

Please keep discussions civil and on-topic. Repeated violations may lead to a temporary ban.

Plugins

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

plugins

Started by Hung Tran 6 years ago · 0 replies · 489 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 Rene, 1 week ago
2 43 1 week ago
Plugins · by Xavier, 4 weeks ago
2 53 4 weeks ago
Plugins · by Luka Prinčič, 7 years ago
3 1179 1 month ago
Plugins · by Sebastian van de Meer, 1 month ago
1 48 1 month ago
Plugins · by PIERROT Alain, 2 months ago
3 72 2 months ago