UNPKG

funcunit

Version:
51 lines (34 loc) 1.11 kB
@property {String} System.configPath @parent StealJS.config @alias steal.config A shortcut for specifying the [@config] module [System.paths path] and [System.baseURL baseURL]. @option {String} Specifies the path to the [@config] 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 [@config] is not specified, is default value is specified in [paths](System.paths.html#section_Defaultpathsconfiguredbysteal). @body ## 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 [System.config].