Skip to content

Files are accidentally combined when ext is defined #341

@helgatheviking

Description

@helgatheviking

When I try to find use the bit of code from the readme to dynamically uglify all the files in a folder:

// Project configuration.
grunt.initConfig({
  uglify: {
    my_target: {
      files: [{
          expand: true,
          cwd: 'src/js',
          src: '**/*.js',
          ext: '.min.js',
          dest: 'dest/js'
      }]
    }
  }
});

If the filenames have . in them uglify gets confused and concatenates files. For example: I have jquery.fitvids.js and jquery.fastclick.js and after running the uglify from above I end up only with jquery.min.js. However, if I drop the ext setting then I get 3 files as expected.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions