config
config.config
{function(config)}
Specifies configuration values for Steal. This should be used to set properties like configPath and env.
{function(config)}
Specifies configuration values for Steal. This should be used to set properties like configPath and env.
Use
config
can be called in four ways.package.json
If using the npm plugin you can add config to your package.json's config property:
Programatically
Call
steal.config
after steal.js has been loaded like:This is is most commonly done in the @config module.
Script Attributes
Any property besides src, id, and type will be used to set on the loader:
The above will be translated to a call like:
steal object
A
steal
object loaded beforesteal.js
will be used as a steal.config argument.