build_js | R Documentation |
Generates a minified file under inst/pkg_name-pkg_version, if mode is prod. If mode is dev, aggregates all js files without mangling or compression.
build_js(dir = "srcjs", mode = c("prod", "dev"))
dir |
Default to srcjs. |
mode |
Production or development mode. Choose either "prod" or "dev". "prod" bundles, aggregates and minifyies files. "dev" only bundles the code. Modules follow the ES6 format (import/export). |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.