You should use the bower task only to load tower components and add a copy task to move the files as needed.
Install grunt-contrib-copy
npm install grunt-contrib-copy
And use it in your grunt file:
grunt.loadNpmTasks('grunt-contrib-copy'); grunt.initConfig({ pkg: grunt.file.readJSON('package.json'), /* more tasks... */ copy: { main: { files: [ // includes files within path {expand: true, src: ['path/*'], dest: 'dest/', filter: 'isFile'}, // includes files within path and its sub-directories {expand: true, src: ['path/**'], dest: 'dest/'}, // makes all src relative to cwd {expand: true, cwd: 'path/', src: ['**'], dest: 'dest/'}, // flattens results to a single level {expand: true, flatten: true, src: ['path/**'], dest: 'dest/', filter: 'isFile'}, ], }, } });
You can configure it to copy only those **.min.js .
source share