summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEliot Whalan <ewhal@pantsu.cat>2016-06-18 08:07:34 +0200
committerEliot Whalan <ewhal@pantsu.cat>2016-06-18 08:07:34 +0200
commit127f644a76f876ec436d4170ab1b1ae0da8f2dff (patch)
tree352d76c927deaf6e3dd78c0d053e61c41a56a81e
parentf12dc4bc2d5fc72d7cea95c8cf8bd204aa294ce8 (diff)
Reintroduce htmlmin task
-rw-r--r--Makefile8
-rw-r--r--package.json4
2 files changed, 10 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index 82ce430..aae3d22 100644
--- a/Makefile
+++ b/Makefile
@@ -1,10 +1,16 @@
-all: mkdirs swig min-css min-js copy
+all: mkdirs swig htmlmin min-css min-js copy
swig:
@node node_modules/swig/bin/swig.js render -j dist.json templates/faq.swig > dist/faq.html
@node node_modules/swig/bin/swig.js render -j dist.json templates/index.swig > dist/index.html
@node node_modules/swig/bin/swig.js render -j dist.json templates/tools.swig > dist/tools.html
+htmlmin:
+ @node node_modules/htmlmin//bin/htmlmin dist/index.html -o dist/index.html
+ @node node_modules/htmlmin//bin/htmlmin dist/faq.html -o dist/faq.html
+ @node node_modules/htmlmin//bin/htmlmin dist/tools.html -o dist/tools.html
+
+
mkdirs:
@mkdir -p ./dist/img
diff --git a/package.json b/package.json
index b492d3d..5635692 100644
--- a/package.json
+++ b/package.json
@@ -18,11 +18,13 @@
"license": "MIT",
"bugs": {
"url": "https://github.com/pomf/pomf/issues"
-
},
"devDependencies": {
"clean-css": "^3.4.18",
"uglify-js": "^2.6.2",
"swig": "^1.4.2"
+ },
+ "dependencies": {
+ "htmlmin": "0.0.6"
}
}