I'm using grunt-ngmin to convert AngularJS DI.
I wonder: is it possible to replace old files with new ones without saving them to another location?
I'm using grunt-ngmin to convert AngularJS DI.
I wonder: is it possible to replace old files with new ones without saving them to another location?
Yes it is possible, you can use a grunt config looking something like this (if you want to replace all javascript files in the static folder):
ngmin: {
dist: {
expand: true,
cwd: './static/',
src: ['**/*.js'],
dest: './static/'
}
}
Be careful that you really want to replace the files though, might want to check the output first, if you haven't done so already.