baseURL

  • property
config.baseURL {String}  

Specifies the root path to use for all module lookups.

String

The root path to use for all module lookups. If baseURL is not specified, the baseURL is treated as the page's directory in a browser and process.cwd() in node.

Specifying config will set baseURL to the config's parent directory.

Use

When a module is imported, the baseURL will be the prepended to the module location by default. For example:

steal.config({
    baseURL: "../libs"
});
steal.import("mylib")      // looks in ../libs/mylib

This behavior can futher be modified by paths