Skip to content

Need to remove files from dist, unable to update context.distFiles #457

Description

@lolmaus

Current logic always appends to arrays in the context, making it impossible to remove entries from context.distFiles:

if (_.isArray(a)) {
return a.concat(b);
}

I've managed to monkey patch it like this and it worked:
https://github.com/lolmaus/lolma.us/blob/b7c1163dccab5d21c4bc4245b0483da5f698fa4a/lib/ember-cli-deploy-manipulate/index.js#L13-L20

I can try adding a test case and filing a pull request. Need confirmation, recommendations welcome.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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