Skip to content

scripts are uglifyed even if useMin is true and a minSrc is specified #75

Open
@Waymoot

Description

@Waymoot

I had to mix Prototype and jQuery and for some reason Prototype could not be uglifyed.
I created a compressed version of Prototype with no uglify (just remove comments and space)
The output shows that it uses the minSrc file but it uglify it again during processing which breaks the code.

module.exports = {
  bundle: {
    vendor: {
      scripts: [
          './path/to/jquery.js',
          {
              src: './bower_components/jquery/dist/prototype.js',
              minSrc: './bower_components/jquery/dist/prototype.compressed.js'
          }
       ],
        options: {
             rev:    false,  // do not add #hash to filename
             uglify: true   // uglify js code
             useMin: true  // use pre-compressed src when available (needed for Prototype)
        }
     }
  }
}

in Gulpfile I just got the bundle.config.js and piped bundle() so nothing fancy at all.

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