bit-docs-generate-html/build/static_dist module
Builds a static distributable which will eventually be copied to the
static
folder of the generated output.
staticDist(options)
Builds the static distributable with the following steps:
Copies everything from bit-docs-generate-html/site/default/static to bit-docs-generate-html/site/static/build/buildHash.
Copies the path in
options.dest
to bit-docs-generate-html/site/static/build/buildHash.require
s the "build" module at bit-docs-generate-html/site/static/build/buildHash/build.js.Calls that "build" module function with the options and returns the result.
The "build" module is expected to build a minified distributable and copy the necessary contents to bit-docs-generate-html/site/static/dist/buildHash and return a promise that resolves when complete.
Parameters
- options
{Object}
:
Returns
{Promise}
: A promise that resolves if the static dist was successfully created.