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
|
version: 3.5.1
|
||||||
node:
|
node:
|
||||||
version: 5.11.1
|
version: 5.11.1
|
||||||
|
environment:
|
||||||
|
DEBUG: false
|
||||||
|
|
||||||
dependencies:
|
dependencies:
|
||||||
pre:
|
pre:
|
||||||
|
|
|
@ -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
|
||||||
|
|
Reference in a new issue