-
Notifications
You must be signed in to change notification settings - Fork 17
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
Assets need deploy-time building #173
Comments
WebAssets has a note on how to make it work with read-only filesystems. We could add this as a command to |
The notes on URL expiry and cache manifests are also relevant: https://webassets.readthedocs.io/en/latest/expiring.html |
From my reading, here are some features webpack offers over webassets:
There's a plugin that helps retrieve the latest built assets with a jinja helper - https://github.com/nickjj/flask-webpack. I'm currently learning how to configure this and webpack with a flask app. |
Should we provide a two-part upgrade path for existing apps?
This is assuming webpack is not a drop-in replacement and apps will need upgrades. If that's not the case, we can switch entirely. |
Baseframe makes extensive use of WebAssets, forcing it on all apps. WebAssets is currently configured to build assets on demand at run-time. This interferes with read-only filesystems such as in Docker.
We need WebAssets to do asset building as a distinct step as part of the deployment, or replace it with something else that can do that, like Webpack.
The text was updated successfully, but these errors were encountered: