@config

  • typedef
{*}  

*

The @config module is loaded prior to the @dev and main module in development and assumed to be packaged in bundle in production.

If paths["@config"] is not specified, its default path will obey the following rules:

  • If steal.js is in ROOT/node_modules/steal/steal.js, @config will be looked for in ROOT/stealconfig.js.
  • Otherwise, it will be looked for in baseURL/stealconfig.js.

Use

The path to @config is typically specified with configPath in the steal.js <script> tag like:

<script src="../path/to/steal/steal.js"
        config-path="../path/to/stealconfig.js"
        main="app">
</script>

But it can be specified with any of the approaches in config.

Help us improve StealJS by taking our community survey