It's a Flask extension, check it out at https://github.com/nickjj/flask-stati...
Hit the subscribe button to receive more videos like this!
---
Timestamps:
0:00 -- Intro
0:15 -- It's not a competitor to Webpack and other asset build tools
1:10 -- This extension completely replaces my other Flask-Webpack extension
2:03 -- A quick look at an example app's HTML source and Jinja 2 templates
3:36 -- Why you'll want to use this in every Flask project
4:38 -- It's meant to run in production but you can use it in development too
4:54 -- Running the new flask digest compile command
6:17 -- Viewing the digested files that the compile command generated
7:32 -- Viewing the page source with digested files
7:59 -- Briefly talking about how md5 hashing works
8:52 -- This extension lets you efficiently cache your static files
13:48 -- Gzipping your static files can shrink them by 10x or 20x
16:51 -- Going over how this extension works
17:14 -- Looking at the cache manifest file this extension creates
18:20 -- Using the new static_url_for template helper
19:59 -- Quickly looking at the source code for static_url_for
22:07 -- This extension won't make your site slower, it'll make it faster!
22:34 -- Other forms of cache busting and why md5 tagging files is really good
23:49 -- Ignoring certain file types or skipping the gzip process
24:31 -- Git ignoring the md5 tagged and gzipped files
24:58 -- Cleaning your digested files with this extension
26:01 -- Automatically digesting your static files in a Dockerfile
References:
- https://github.com/nickjj/flask-stati...
- https://buildasaasappwithflask.com
---
Follow along?
Personal Website: https://nickjanetakis.com
Twitter: / nickjanetakis