gulp-tasks/bundle-js.js
// Loading either default webpack configs or user provided ones:
Loading either default webpack configs or user provided ones.
Loading either default webpack configs or user provided ones .
function _loadWebpackConfig(configFileName) {
  const customWebpackConfigPath = path.join(process.cwd(), configFileName);
  let webpackConfig = null;
  try {
    webpackConfig = require(customWebpackConfigPath);
  } catch(err) {}
  if (!webpackConfig) {
    webpackConfig = require('../config/webpack/webpack.config.js');
  } else {
    console.log('R> loaded custom webpack config: ', customWebpackConfigPath)
  }
  return webpackConfig;
}
function _loadWebpackConfig ( configFileName ) { const customWebpackConfigPath = path . join ( process . cwd ( ) , configFileName ) ; let webpackConfig = null ; try { webpackConfig = require ( customWebpackConfigPath ) ; } catch ( err ) { } if ( ! webpackConfig ) { webpackConfig = require ( '../config/webpack/webpack.config.js' ) ; } else { console . log ( 'R> loaded custom webpack config: ' , customWebpackConfigPath ) } return webpackConfig ; }
Loading either default webpack configs or user provided ones:
Loading either default webpack configs or user provided ones :