use_loader_rule {packer} | R Documentation |
Add a Loader rule
Description
Adds a loader rule that is not yet implemented 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 |
.name_use |
Depending on the webpack config
one might want to change the |
Details
Reads the srcjs/config/loaders.json
and appends the rule.
[Package packer version 0.1.3 Index]