bundle(mode = c("production", "development", "none")) bundle_prod() bundle_dev() watch()
The configuration mode tells webpack to use its built-in optimisations accordingly.
bundle() - bundle the project.
bundle_prod() - bundle the project optimising production, equivalent to
npm run production.
bundle_dev() - bundle the project including debugging developer tools, equivalent to
npm run development.
watch() - watches for changes in the
srcjs and rebuilds if necessary, equivalent to
npm run watch.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.