only minify production builds
This commit is contained in:
parent
02bf0cd1be
commit
d5585c1a73
2 changed files with 8 additions and 1 deletions
|
@ -3,6 +3,8 @@ machine:
|
|||
version: 3.5.1
|
||||
node:
|
||||
version: 5.11.1
|
||||
environment:
|
||||
DEBUG: false
|
||||
|
||||
dependencies:
|
||||
pre:
|
||||
|
|
|
@ -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
|
||||
|
|
Reference in a new issue