Did you manage to find a solution for this? I checked all the problems in their github and apparently this should be fixed, but I still get the same behavior with the latest builds.
EDIT: the solution was to pass the rename function and manually create the file name
files: { src: 'src/hp-lp-<%= pkg.version %>.js', dest: 'src/', expand: true, flatten: true, rename: function (dest, src) { var folder = src.substring(0, src.lastIndexOf('/')); var filename = src.substring(src.lastIndexOf('/'), src.length); filename = filename.substring(0, filename.lastIndexOf('.')); return dest + folder + filename + '.min.js'; } }
source share