funcunit
Version:
<!-- @hide title
51 lines (34 loc) • 1.11 kB
Markdown
{String} System.configPath
StealJS.config
steal.config
A shortcut for specifying the [] module [System.paths path] and [System.baseURL baseURL].
{String}
Specifies the path to the [] configuration file that will be loaded before the
[System.main main] module. This will also set [System.baseURL baseURL] to
the `main` module directory.
If a path to [] is not specified, is default value is specified in
[paths](System.paths.html#section_Defaultpathsconfiguredbysteal).
## 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.="../path/to/stealconfig.js"
main="app">
</script>
```
It also can be specified with any of the approaches in [System.config].