From 2c9ac0d0a7aa7d23311bcecc98fc23194351af54 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Peter=20M=C3=BCller?= Date: Sun, 17 Dec 2017 21:32:53 +0100 Subject: [PATCH] Added assetgraph-builder post build improvement --- .gitignore | 3 ++- package.json | 2 ++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/.gitignore b/.gitignore index 22fa0cc6d8..745a03451f 100644 --- a/.gitignore +++ b/.gitignore @@ -20,4 +20,5 @@ mocha.js *_LOCAL_* *_REMOTE_* docs/_site -*.sublime-workspace +docs/_dist + diff --git a/package.json b/package.json index f63d728955..84c79dd8b7 100644 --- a/package.json +++ b/package.json @@ -305,6 +305,7 @@ "coveralls": "nyc report --reporter=text-lcov | coveralls", "prebuildDocs": "node scripts/docs-update-toc.js", "buildDocs": "bundle exec jekyll build --source ./docs --destination ./docs/_site --config ./docs/_config.yml --safe --drafts", + "postbuildDocs": "buildProduction docs/_site/index.html --outroot docs/_dist --canonicalroot https://mochajs.org/ --optimizeimages --asyncscripts ", "prewatchDocs": "node scripts/docs-update-toc.js", "watchDocs": "bundle exec jekyll serve --source ./docs --destination ./docs/_site --config ./docs/_config.yml --safe --drafts --watch" }, @@ -322,6 +323,7 @@ }, "devDependencies": { "assert": "^1.4.1", + "assetgraph-builder": "^5.6.4", "browserify": "^14.4.0", "coffee-script": "^1.10.0", "coveralls": "^3.0.0",