Skip to content

Commit

Permalink
Minify HTML & CSS (#1351)
Browse files Browse the repository at this point in the history
  • Loading branch information
jonaharagon committed May 28, 2022
1 parent 547ed4c commit d58d0cb
Show file tree
Hide file tree
Showing 3 changed files with 44 additions and 10 deletions.
1 change: 1 addition & 0 deletions Pipfile
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ mkdocs-material = {path = "./mkdocs-material"}
mkdocs-static-i18n = "*"
mkdocs-git-revision-date-localized-plugin = "*"
typing-extensions = "*"
mkdocs-minify-plugin = "*"

[dev-packages]
scour = "*"
Expand Down
46 changes: 36 additions & 10 deletions Pipfile.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 7 additions & 0 deletions mkdocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,13 @@ watch:
- includes

plugins:
- minify:
minify_html: true
htmlmin_opts:
remove_comments: true
minify_css: true
css_files:
- assets/stylesheets/extra.css
- i18n:
default_language: en
material_alternate: true
Expand Down

0 comments on commit d58d0cb

Please sign in to comment.