steal-tools.StealConfig
{Object}
Configuration values needed for StealJS to load modules. Some set of the following
values are required:
Object
Properties
-
main
{String | Array<moduleName>}Optional
The module, or modules, that should be
imported. This sets main.
- It is optional if a
config is provided.
-
config
{String}Optional
The path to a configuration file. This
will also specify baseURL, and sometimes main. This sets configPath.
- It is optional if
main is provided and no other configurations are needed.
- It is required if you are using NPM.
-
meta
{Object<moduleName,metadata>}Optional
-
baseURL
{String}Optional
If a configuration file is not used,
the baseURL value must be set.
-
bundle
{Array<moduleName>}Optional
An array of that should be progressively loaded. See steal's bundle property for more information.
-
jsonOptions
{Object<jsonOptions>}Optional
Provides options that can be applied to JSON loading.
Using the transform method will run through all JSON files while building, also the package.json's of loaded modules
(if using NPM).
Use
build, export, and transformImport all take a
StealConfig, which configures the modules to load.If your
configfile specifiesmain, all that is needed is theconfiglocation:Otherwise,
mainandconfigare probably needed:If there is no
config, you should specify the baseURL, so StealJS knows where to find your modules.