I have a the following structure:
src/
modules/
module1/
js/
main.js
scss/
main.scss
Not exactly an answer to your question but i made it here looking for relative dest folders with grunt so... Here is how i solved it
...
base: {
files:
[
{
expand: true,
cwd: 'app/design/frontend/',
src: ['**/Magento_Sales/email-src/*.html'],
dest: '../../Magento_Sales/email/',
rename: function(dest, src, expand) {
src = path.parse(src)
return path.join(expand.cwd, src.dir, dest, src.base);
}
},
],
}
...
This little bit path.join(expand.cwd, src.dir, dest, src.base);
just creating the path i need.
expand.cwd = app/design/frontend/
src.dir =
dest = ../../Magento_Sales/email/
src.base =
and all together it = app/design/frontend/
and in my situation it will now compile my html emails in relative destination folders