grunt-bower-requirejs
grunt-bower-requirejs copied to clipboard
Config file not created
trafficstars
Using the following code a config file is not made, yet the cli version DOES write it.
grunt.config.set('bowerRequirejs',{
dist: {
target: {
rjsConfig: './assets/config/requirejs.js',
options: {
'exclude-dev': true
}
}
},
dev: {
target: {
rjsConfig: './assets/config/requirejs.js'
}
}
});
Same thing happened to me. I deleted the existing file and ran the script again and it worked. It doesn't overwrite existing files. Added a task to delete the config file before compiling to make it work.
You have every target wrapped in an extra target object.
grunt.config.set('bowerRequirejs', {
dist: {
rjsConfig: './assets/config/requirejs.js',
options: {
'exclude-dev': true
}
},
dev: {
rjsConfig: './assets/config/requirejs.js'
}
});