bundle: bundle & Watch

View source: R/bundle.R

bundleR Documentation

bundle & Watch

Description

Bundle and watch the JavaScript.

Usage

bundle(mode = c("production", "development", "none"))

bundle_prod()

bundle_dev()

watch()

Arguments

mode

The configuration mode tells webpack to use its built-in optimisations accordingly.

Functions

  • 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.


packer documentation built on May 28, 2022, 5:06 p.m.