• property
config.configMain {moduleName}  

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


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.


The configMain name and path is typically specified with configPath in the steal.js <script> tag like:

<script src="../path/to/steal/steal.js"

This sets configMain = "stealconfig.js".

Use with npm

If steal.js is inside node_modules like:

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

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

Help us improve StealJS by taking our community survey