configMain

  • property
config.configMain {moduleName}  

The name of a module that is loaded before @dev and main.

moduleName

A configuration module that is loaded before the 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.

Use

The configMain name and path 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>

This sets configMain = "stealconfig.js".

Use with npm

If steal.js is inside node_modules like:

<script src="../node_modules/steal/steal.js">
</script>

configMain will be set to "package.json!npm".