diff --git a/lib/tasks/views/build.js b/lib/tasks/views/build.js
index 797242fd7..a658e72bf 100644
--- a/lib/tasks/views/build.js
+++ b/lib/tasks/views/build.js
@@ -40,10 +40,13 @@ export default (gulp, config, args) => {
.pipe(
minhtml({
collapseBooleanAttributes: true,
+ customAttrCollapse: /(content)/,
+ includeAutoGeneratedTags: false,
+ minifyCSS: true,
+ minifyJS: true,
removeComments: true,
removeScriptTypeAttributes: true,
- removeStyleLinkTypeAttributes: true,
- customAttrCollapse: /(content)/
+ removeStyleLinkTypeAttributes: true
}))
.pipe(replace("$theme-name$", metadata.name))
.pipe(replace("$theme-version$", metadata.version))
diff --git a/material/base.html b/material/base.html
index 67c2818e0..d2d4c8de5 100644
--- a/material/base.html
+++ b/material/base.html
@@ -111,57 +111,15 @@
{% endif %}
{% endfor %}
-
+
{% for path in extra_javascript %}
{% endfor %}
{% endblock %}
{% block analytics %}
{% if config.google_analytics %}
-
+
{% endif %}
{% endblock %}