Learn R Programming

packer (version 0.1.3)

bundle: 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.