I have a set of subfolders with some *.dev.js files. I need grunt to uglify those and create the uglified files next to the source files, for each .dev.js file in the directory tree. Here is how I try to do it:
uglify: {
options: {
banner: '/*! <%= pkg.name %> <%= grunt.template.today("dd-mm-yyyy") %> */\n'
},
dist: {
files: {
src: '/folder/**/*.dev.js',
ext: '.js',
flatten: true,
expand: true
}
}
}
But this gives an error:
Running "uglify:dist" (uglify) task File src created: 13.49 kB → 5.62 kB
Destination ext not written because src files were empty. Warning: Object true has no method 'indexOf' Use --force to continue.