Learn R Programming

packer (version 0.1.0)

use_loader_rule: Add a Loader Ru<U+00E9>e

Description

Adds a loader rule that is not yet implemened in packer.

Usage

use_loader_rule(
  packages,
  test,
  ...,
  use = as.list(packages),
  .name_use = "use"
)

Arguments

packages

NPM packages (loaders) to install.

test

Test regular expression test which files should be transformed by the loader.

...

Any other options to pass to the rule.

use

Name of the loaders to use for test.

.name_use

Dependending on the webpack config one might want to change the use to loader or loaders.

Details

Reads the srcsjs/config/loaders.json and appends the rule.