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

resource: custom dir prefix generator for generateSavePath #731

Open
myfreeer opened this issue Jan 15, 2023 · 3 comments
Open

resource: custom dir prefix generator for generateSavePath #731

myfreeer opened this issue Jan 15, 2023 · 3 comments
Labels
enhancement New feature or request

Comments

@myfreeer
Copy link
Member

Map different host and path to different savePath
https://github.com/website-local/website-scrap-engine/blob/0.5.0/src/resource.ts#L309-L327

@myfreeer myfreeer added the enhancement New feature or request label Jan 15, 2023
@myfreeer
Copy link
Member Author

This should be marked as BREAKING change, and generateSavePath could be a seperate life cycle.

@myfreeer
Copy link
Member Author

Also we can make createResource api more like the other life-cycles.

@myfreeer
Copy link
Member Author

myfreeer commented Mar 8, 2023

A wrapper should be made to help users to migrate to new api.

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

No branches or pull requests

1 participant