1
Fork 0

only minify production builds

This commit is contained in:
Jake Howard 2016-07-29 21:55:19 +01:00
parent 02bf0cd1be
commit d5585c1a73
Signed by: jake
GPG key ID: 57AFB45680EDD477
2 changed files with 8 additions and 1 deletions

View file

@ -3,6 +3,8 @@ machine:
version: 3.5.1
node:
version: 5.11.1
environment:
DEBUG: false
dependencies:
pre:

View file

@ -62,12 +62,17 @@ PLUGINS = [
"minify"
]
if "DEBUG" in os.environ:
PLUGINS.append("minify") # only minify on production build
SITEMAP = {
"format": "xml"
}
CATEGORY_PAGE_PATH = "theme/templates/categories"
MINIFY = {
"remove_comments": True
"remove_comments": True,
"remove_optional_attribute_quotes": False,
"reduce_boolean_attributes": True
}
# Setup markdown extensions