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

Relative output path support #23

Closed
wants to merge 1 commit into from
Closed

Conversation

bassarisse
Copy link

This PR simplifies getFiles function and add support for relative output path in Webpack config, like so:

    output: {
        path: './build/'
    }

What do you think? Would it incorrectly affect something?

@ghost ghost mentioned this pull request Feb 13, 2017
.filter(file =>
exclude.every(excluded =>
!minimatch(file, path.join(excluded), { dot: true })
!minimatch(path.relative(fromPath, file), path.join(excluded), { dot: true })
Copy link

@ghost ghost Feb 13, 2017

Choose a reason for hiding this comment

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

Can the path.relative call be cached outside of the function passed to exclude.every?

Copy link
Owner

Choose a reason for hiding this comment

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

yes sure i don't see any issue here as long the tests still pass 👍

@ghost
Copy link

ghost commented Feb 13, 2017

@bassarisse can you please rebase your work. #25 was recently accepted, which changed the contents of getFiles.

@foxbunny and @gpbl I've tested this change to getFiles in my own Webpack project, and it resolves the issue I reported in #27

@gpbl
Copy link
Owner

gpbl commented Feb 13, 2017

@destroyerofbuilds thanks for testing this!
@bassarisse do you have the time to add a test for this change?

@gpbl
Copy link
Owner

gpbl commented Feb 27, 2017

See #28

@gpbl gpbl closed this Feb 27, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants