configPath

  • property
config.configPath {String}  

A shortcut for specifying the @config module path and baseURL.

String

Specifies the path to the @config configuration file that will be loaded before the main module. This will also set baseURL to the main module directory.

Use

This is commonly set as part of the steal <script> tag like:

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

or

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

instead of having to specify it like:

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

It also can be specified with any of the approaches in config.

Help us improve StealJS by taking our community survey