When starting uglify, I need to make it ignore certain files and folders, but recursively scan the entire folder structure.
I have a concat task that combines all my plugins and makes them one file. I need to make sure that uglify ignores these files and does not work on them, because I do not want them in the destination directory, since concat has already processed this for me.
I tried adding files and folders to my src array using the previous ones !, but it still works on them.
Below I try to use, but it does not work:
uglify: { options: { banner: '/*! <%= grunt.template.today("mm-dd-yyyy h:MM:ss TT") %> */\n' }, files: { src: [ '!ie' ,'!polyfills' ,'!vendor' ,'!iecompat.js' ,'**/*.js' ], dest: 'app/scripts', cwd: 'sources/scripts', ext: ".js", flatten: false, expand: true } },
gruntjs grunt-contrib-uglify
StephenRios
source share