Closed deiga closed 8 years ago
Hi, you can define it in data: {}
property
require('load-grunt-config')(grunt, {
//...
data: {
someVar: 42,
otherVar: {
foo: 'some/path'
}
}
//...
});
and then use it in any config string like '<%= someVar %>'
and '<%= otherVar.foo %>'
, also the same way you can access to any other config properties (for example '<%= copy.app.dest %>'
)
Thank you! Maybe add this to the readme? :)
it is in readme, in some way :) but maybe I will try to improve it...
@deiga let me know if you will have other issues. Have a nice day!
I have a destination path for all my builds and I want it to come from a variable. How can I create a variable that all my tasks see?