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

Custom packageBase configuration #440

Closed
guybedford opened this issue Jun 25, 2019 · 1 comment · Fixed by #442
Closed

Custom packageBase configuration #440

guybedford opened this issue Jun 25, 2019 · 1 comment · Fixed by #442

Comments

@guybedford
Copy link
Contributor

Asset filtering in ncc will currently filter to only emit assets within the package base, with some other rules as well.

It would be useful to be able to customize this option, and this would also solve the bug in the latest now-node build.

Something like:

ncc('/path/to/pkg/file.js', {
  packageBase: '/path/to/pkg'
})

will then never emit files outside of the /path/topkg base.

@guybedford
Copy link
Contributor Author

Implemented in vercel/webpack-asset-relocator-loader#56.

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 a pull request may close this issue.

1 participant