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 version: 3.5.1
node: node:
version: 5.11.1 version: 5.11.1
environment:
DEBUG: false
dependencies: dependencies:
pre: pre:

View file

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