Run commands during the build phase
yarn add makestatic-build-exec
Run commands.
Useful when you are pre-processing source files, for example gathering and processing files that are outside of the input directory.
after(context, options)
Executes build commands in parallel.
Returns a promise that resolves when all commands have completed.
-
context
Object the processing context. -
options
Object the plugin options.
-
commands
String|Array list of commands to execute. -
watch
Boolean=true execute commands in watch mode.
-
Error
if the commands option is invalid. -
Error
if the command execution fails.
MIT
Created by mkdoc on March 12, 2017