Grunt Concat Task, how to ignore all .min.js files?

Viewed 7969

I have the following grunt concat task. How can I make concat ignore all minified files? This doesn't work.

concat: {
    js: {
        src:  [ 
            '<%= globalConfig.bar %>', 
            '<%= globalConfig.foo %>/*.js', 
            '<%= globalConfig.foo %>/!*.min.js', 
            '<%= globalConfig.fooLib %>/*.js', 
            '<%= globalConfig.fooLib %>/!*.min.js'
        ],
        dest: '../../foo/fooCombined.js'
    },
    css: {
        src: ['<%= globalConfig.foo %>/*.css'],
        dest: '../../foo/fooCombined.css'
    }
},

This also doesn't work:

'<%= globalConfig.fooLib %>/(*.js && !*min.js)'

Any help is appreciated. Thanks.

1 Answers
Related