Skip to content

Commit a27e54d

Browse files
committed
Added assetgraph-builder post build improvement
1 parent 9150e34 commit a27e54d

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,3 +20,4 @@ mocha.js
2020
*_LOCAL_*
2121
*_REMOTE_*
2222
docs/_site
23+
docs/_dist

package.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -305,6 +305,7 @@
305305
"coveralls": "nyc report --reporter=text-lcov | coveralls",
306306
"prebuildDocs": "node scripts/docs-update-toc.js",
307307
"buildDocs": "bundle exec jekyll build --source ./docs --destination ./docs/_site --config ./docs/_config.yml --safe --drafts",
308+
"postbuildDocs": "buildProduction docs/_site/index.html --outroot docs/_dist --canonicalroot https://mochajs.org/ --optimizeimages --asyncscripts ",
308309
"prewatchDocs": "node scripts/docs-update-toc.js",
309310
"watchDocs": "bundle exec jekyll serve --source ./docs --destination ./docs/_site --config ./docs/_config.yml --safe --drafts --watch"
310311
},
@@ -322,6 +323,7 @@
322323
},
323324
"devDependencies": {
324325
"assert": "^1.4.1",
326+
"assetgraph-builder": "^5.6.4",
325327
"browserify": "^14.4.0",
326328
"buffer": "^4.9.1",
327329
"coffee-script": "^1.10.0",

0 commit comments

Comments
 (0)