UNPKG

steal

Version:
37 lines (23 loc) 904 B
@property {moduleName} config.configMain configMain @parent StealJS.config The name of a module that is loaded before [@dev] and [config.main]. @option {moduleName} A configuration module that is loaded before the [config.main] module(s). This is where all configuration should happen. The `configMain` module and all of its dependencies run during a build, so make sure they can operate without a DOM. @body ## Use The `configMain` name and path is typically specified with [config.configPath] in the steal.js `<script>` tag like: ```html <script src="../path/to/steal/steal.js" config-path="../path/to/stealconfig.js" main="app"> </script> ``` This sets `configMain = "stealconfig.js"`. ## Use with npm If _steal.js_ is inside _node\_modules_ like: ```html <script src="../node_modules/steal/steal.js" main></script> ``` `configMain` will be set to `"package.json!npm"`.