| bundle | R Documentation |
Bundle and watch the JavaScript.
bundle(mode = c("production", "development", "none"))
bundle_prod()
bundle_dev()
watch()
mode |
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 bundle("production") and npm run production.
bundle_dev() - bundle the project including debugging developer tools, equivalent to bundle("development") and 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.