Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add option to ignore specific files from being added to the manifest #58

Merged
merged 2 commits into from
Sep 12, 2017

Conversation

trentmwillis
Copy link
Member

There have been several use cases presented for this feature, most notably: ember-engines/ember-engines#444 (comment).

@trentmwillis
Copy link
Member Author

Upon further thought, for the ember-engines use case, we'll likely need to support either suffix matching or regular expressions. I tend to think the latter is better, so I'll be updating this accordingly.

it('can ignore specific files', function() {
return verifyAssetManifest('full-minus-ignored-files', {
prepend: '/bundles',
filesToIgnore: [ 'blog/assets/engine.css', 'chat/assets/engine.js' ]
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Minor quibble about the naming, we have a similar concept in broccoli-funnel land and call it exclude. Thoughts?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I originally had this as ignore, but changed it because there may be a use case in the future where we want an entire "bundle" ignored, in which case we may want some added specificity. Also, I prefer the explicitness. That said, I don't feel super strongly about it either way.

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

Successfully merging this pull request may close these issues.

2 participants