lib/assets-processor.js
function setSkyAssetsLoaderUrl(webpackConfig, skyPagesConfig, baseUrl, rel) {
  const rules = webpackConfig &&
    webpackConfig.module &&
    webpackConfig.module.rules;

  if (rules) {
    const assetsRule = rules.find(rule => /sky-assets$/.test(rule.loader));
    assetsRule.options = assetsRule.options || {};
    assetsRule.options.baseUrl = getAssetsUrl(skyPagesConfig, baseUrl, rel);
  }
}
function setSkyAssetsLoaderUrl(webpackConfig, skyPagesConfig, baseUrl, rel) {
  const rules = webpackConfig &&
    webpackConfig.module &&
    webpackConfig.module.rules;

  if (rules) {
    const assetsRule = rules.find(rule => /sky-assets$/.test(rule.loader));
    assetsRule.options = assetsRule.options || {};
    assetsRule.options.baseUrl = getAssetsUrl(skyPagesConfig, baseUrl, rel);
  }
}
function setSkyAssetsLoaderUrl ( webpackConfig , skyPagesConfig , baseUrl , rel ) { const rules = webpackConfig && webpackConfig . module && webpackConfig . module . rules ; if ( rules ) { const assetsRule = rules . find ( rule => / sky-assets$ / . test ( rule . loader ) ) ; assetsRule . options = assetsRule . options || { } ; assetsRule . options . baseUrl = getAssetsUrl ( skyPagesConfig , baseUrl , rel ) ; } }
Sets the assets URL on Webpack loaders that reference it.
@param {*} webpackConfig The Webpack config object.
@param {*} skyPagesConfig The SKY UX app config.
@param {*} baseUrl The base URL where the assets will be served.
@param {*} rel An additional relative path to append to the assets base URL
once the application's root directory has been appended.
Sets the assets URL on Webpack loaders that reference it .