hops-build is a wrapper around webpack and hops-build-config which exports functions to execute a single build or start a
runBuild() can be used to execute a webpack build.
If being used with the
static option set to
true it will generate html files for all locations configured in your package.json.
If being used without the
static option it will run the webpack build for the
nodeConfig (see hops-build-config for more details).
runBuild() supports the following options:
||Whether to statically build app shells for all locations|
||Whether to clean the build and cache directories before starting the build|
callback is being called after the build has finished and can be used to schedule further work.
runServer() can be used to start a
webpack-dev-server. It will take the
developConfig with its
watchConfig (see hops-build-config for more details) and start a
runServer() supports the following options:
||Whether to clean the build and cache directories before starting the server|
callback is being called after the server has started and can be used to schedule further work.
If you want to programmatically start a webpack build then you should use this module.
var hopsBuild = ;hopsBuild;