g:javascript in grails 3.1.9

I am using g:javascript tag in gsp page to link my JS file in webapp/JS folder. How ever it looks like grails is unable to pick the file. g:javascript seems to work in older version of grails.

On the other hand when I used g:external to link the JS file I was able to do it successfully.

Is there anything wrong with g.javascript in grails 3.1.9

Upvotes: 0

Views: 161

Answers (1)

Burt Beckwith
Burt Beckwith

Reputation: 75671

Grails now uses the asset-pipeline plugin by default to manage static resources. The Grails docs are very out of date about this though, so you're much better off going directly to the asset-pipeline docs, and in particular the docs for the <asset:javascript> tag

Upvotes: 3

Related Questions