From a27e54d846fed21a744d3016415231928d66dbc2 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 | 1 + package.json | 2 ++ 2 files changed, 3 insertions(+) diff --git a/.gitignore b/.gitignore index 774d4379a4..1534ff8981 100644 --- a/.gitignore +++ b/.gitignore @@ -20,3 +20,4 @@ mocha.js *_LOCAL_* *_REMOTE_* docs/_site +docs/_dist diff --git a/package.json b/package.json index 00cea01277..0e33233802 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", "buffer": "^4.9.1", "coffee-script": "^1.10.0",