grails asset pipeline plugin -
i have read documentation of grails asset pipeline plugin started implementing in sample grails project built in 2.2.3
. installed asset pipeline plugin version 1.7.1
. requirement include jquery.ui.min.js
in gsp file included using tag
<asset:javascript src="jquery-ui.min.js"/>
.
also, in config.groovy, have made following entry
grails.assets.bundle=true
.
the problem facing i'm unable access jquery.ui.min.js in gsp file. pease tell me missing , how should proceed not valid solutions query??
i think need reference different file:
<asset:javascript src="application.js"/>
and application.js
contains:
//= require jquery-ui.min
at top of file (make sure there isn't blank lines above line, other comment lines ok) load lib. see http://bertramdev.github.io/asset-pipeline/guide/usage.html#directives
this answer guess based on grails 2.4 gives me out of box. fyi, auto-generated application.js
contains:
// manifest file that'll compiled application.js. // // javascript file within directory can referenced here using relative path. // // you're free add application-wide javascript file, it's better // create separate javascript files needed. // //= require jquery //= require_tree . //= require_self
Comments
Post a Comment