I'm currently using grunt-contrib-jade and I'm trying to utilize the pkg.name and pkg.version variables to generate my css file name. Unfortunately, I haven't been able to make this work on my own and would appreciate any assistance. Below is what I have so far:
Snippet from jade task in Gruntfile
compile: {
options: {
data : {
app : '<%= pkg.name %>',
version: '<%= pkg.version %>',
},
pretty: true
}
And then in my jade file:
link(href='_assets/css/<%= app %>-<%= version %>.css', rel='stylesheet', media='screen')
I'm uncertain how to include the data from the compile options defined in the jade task within the Gruntfile.
Any insight or guidance you can offer would be greatly appreciated. Thank you!