I am trying to compress a folder on grunting. I used the following code in Gruntfile.js
compress: {
main : {
options : {
archive : "myapp.zip"
},
files : [
{ expand: true, src : "src/partials/templates", cwd : "target/dev/" }
]
}
}
Folder structure
--mainfolder
----src
------partials
----target
------dev
----gruntfile.js
But it is not working. I am new to this. Did i miss anything? Why it is not working?
Please help, Thanks.
I've just run your conf with your folder strcture and it worked for me, I have a myapp.zip in your ./mainfolder
Are you up do date with your nodeJS version (0.10 or 0.12) grunt and compress (my compress is 0.9.1 currently)?
Could you copy the output of your console?