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

project: provide defaults for the allowed_copy_paths #25

Merged
merged 2 commits into from
Nov 28, 2024

Conversation

max-moser
Copy link
Contributor

@max-moser max-moser commented Sep 26, 2024

This PR sets some defaults for the allowed_copy_paths for webpack bundle projects, based on the current Flask app.
Requires inveniosoftware/pywebpack#45

current_webpack.project.path,
current_app.static_folder,
current_app.config["WEBPACKEXT_PROJECT_DISTDIR"],
Copy link
Contributor Author

Choose a reason for hiding this comment

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

note: in my setup, they're basically just subdirectories of the instance_path.

if there is a chance that these could actually point to different paths, i would still keep it.
a few redundant entries in this list may look a bit weird in the average setup, but that's about it; performance won't be impacted by a so few extra entries.

* pynpm is already installed by pywebpack
@ntarocco ntarocco merged commit ed815f3 into inveniosoftware:master Nov 28, 2024
2 checks passed
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