Skip to content
This repository has been archived by the owner on Apr 20, 2018. It is now read-only.

Version 3.0.0 breaks specifying type of a usemin target. #526

Closed
ArturDorochowicz opened this issue Mar 16, 2015 · 2 comments
Closed

Version 3.0.0 breaks specifying type of a usemin target. #526

ArturDorochowicz opened this issue Mar 16, 2015 · 2 comments

Comments

@ArturDorochowicz
Copy link

Before the offending change it was possible to specify the type of the target in usemin task configuration, like so:

usemin: {
  'mytarget': {
    files: { src: '...' },
    options: { type: 'html', ... }
  }
}

(I think this use was documented somewhere, but I can't seem to find it now.)

Currently the value of the type option is ignored and the target name determines the type, therefore - for instance - there can be only one html target - the one named 'html'.

The breaking change happened:
https://github.com/yeoman/grunt-usemin/blob/989766245ba750b116521c26eca7efbdc22e22c2/tasks/usemin.js

@stephanebachelier
Copy link
Collaborator

@ArturDorochowicz it should be fixed with #524

@stephanebachelier
Copy link
Collaborator

closing as a duplicate of #524.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants