app: allow compression bypass for slides
The 2018 Akademy slides are broken due to issues with re-minification of the remark-lates.min.js file.
While excluding that specific file would be an option, as would any file with a .min. indicator of already being minified (as the issue stems from unusual coding practices that are the result of the input being minified already), I suggest—after thinking about it—instead to exclude the slides from being minified.
The reason for that: I added Flask-Minify to make sure the website is served fast by reducing its overall size as well the render blocking components especially. And I see that as an important feature for most parts of the website, but the slides serve a different purpose: They are documentation, more of an archive. I delay of a few tens to hundreds of milliseconds for those slides is more than acceptable, I would argue.
I looked at the front page, as well as multiple blog posts, and most other pages, and intend to continue to do so. They may continually evolve while the slides are best served as is. And this argument stands for any future additions of archive-like content. (And it does so for static/pdf/* as well, which just is not suspect of HTML, CSS, or JS minification.)
Closes: #181 (closed)
Unrelated change I just had locally in the touched file, and thought: Why not send it upstream, as well:
auto-reload on template change
I see no way how this flag can affect production systems, as they use frozen flask, and even if it was plain flask, ideally the system should not see template changes without a controlled restart.
In contrast, for development setups this will allow faster iteration due to the elimination of the need to restart the whole flask server.