Skip to content

concat in specific order; not alphabetically #182

@utdrmac

Description

@utdrmac

I'm using "grunt-contrib-concat": "^1.0.1". Here's gruntfile parts:

concat: {
  options: { separator: ';' },
  dist: {
    src: [
      'node_modules/jquery/dist/jquery.min.js',
      'node_modules/bootstrap/dist/js/bootstrap.min.js',
      'baller.js',
    ],
    dest: 'app.js'
  }
},

When I do more app.js on CLI, I am expecting see "jquery.min.js" first, then "bootstrap.min.js" next, then "baller.js" last. But "baller.js" is always first, followed by bootstrap, then jquery.

If you change baller.js to "zzz.js", then "zzz.js" is the last part of app.js

Why is grunt-concat not honoring the file names order?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions