text: import path from 'path';
  import globby from 'globby';
  import { settings, userSettings } from '../config';
  
  const { config: userConfig } = userSettings;
  
  export const entry = {
    app: `${path.join(__dirname, '../../', settings.sources.app)}index.js`,
    ...getVendorCSS()
  };
  
  function getVendorCSS() {
    // Return flattened array of resolved globs from Baumeister user config.
    const vendorCSS = [].concat(
      ...userConfig.vendor.bundleCSS.map(glob =>
        globby.sync(`./node_modules/${glob}`)
      )
    );
    console.dir(vendorCSS);
    if (!vendorCSS.length) {
      return false;
    }
  
    const config = { vendor: vendorCSS };
    console.dir(config);
    return config;
  }
  