build_js: Compress and optimize all files in the current folder

View source: R/jstools.R

build_jsR Documentation

Compress and optimize all files in the current folder

Description

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.

Usage

build_js(dir = "srcjs", mode = c("prod", "dev"))

Arguments

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


RinteRface/charpente documentation built on Nov. 19, 2022, 2:35 p.m.