How to use the grav-plugin-assets plugin?



I asked this question on the slack channel first but thought it would be better to post it in the community forums. Apologies in advance for the double post!

I looked at the grav-plugin-assets( and as per my understanding it should allow me to inject custom css and scripts at the page level?

After installation I created a new post and added a simple script to it

console.log(“hello world”);

However when I run this page in my browser I don’t see his script in the “source” of my page. Nor do I see the message printed on the console.

Am I using this plugin correctly? I double checked and the plugin is enabled in the admin. Also I tried to rebuild the cache but no luck…


I managed to make inlined assets work via the grav-plugin-shortcode-assets