diff --git a/circle.yml b/circle.yml index 0762842..8290392 100644 --- a/circle.yml +++ b/circle.yml @@ -3,6 +3,8 @@ machine: version: 3.5.1 node: version: 5.11.1 + environment: + DEBUG: false dependencies: pre: diff --git a/pelicanconf.py b/pelicanconf.py index 8bcf691..8618c0b 100644 --- a/pelicanconf.py +++ b/pelicanconf.py @@ -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