forked from TeamDevDev/www.developerdevelopment.com
-
Notifications
You must be signed in to change notification settings - Fork 0
/
_quarto-optimize.yml
23 lines (22 loc) · 873 Bytes
/
_quarto-optimize.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
project:
type: website
pre-render:
# perform minification to make those files
# in the _include directory that will be imported
# into other files so that they are already minified
# by the time that quarto inserts them in other files
- scripts/minify-files.py --source _include --destination _optimize --force --verbose
post-render:
# perform minification on all of the generated files
- scripts/minify-files.py
format:
html:
include-in-header:
# include in the header of generated files only those
# with contents that have already been optimized through
# the process of minification
- file: _optimize/html/header-include.html
include-after-body:
# load the instant-page.js script so that links are
# pre-fetched when a person hovers over content
- file: _include/js/instant-page.js