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

Adding a collect command to copy static assets (including from nested blueprints) to a target dir #37

Open
mattaw opened this issue May 14, 2023 · 0 comments

Comments

@mattaw
Copy link
Contributor

mattaw commented May 14, 2023

[Briefly discussed here :https://github.com//pull/35#issuecomment-1546711780]

My workflow is:

  1. webpack to compile and bundle js and css (Tailwind) into my flask app's static folder.
  2. flask digest compile to create md5 tagged and compressed versions

In production the static assets are served by Apache / Nginx. However blueprints and nested blueprints present an annoyance, as their static assets (and their md5 + compressed counterparts) are scattered in directories through my app's source tree.

I would like to reproduce the directory tree from the Flask app source tree with only the static assets and their md5 + compressed versions in it to a target directory of my choice so I can simplify the configuration of Apache/Nginx down to serving one directory tree vs. one per blueprint. This may involve some complexity or similar to create a single manifest.

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

No branches or pull requests

1 participant