hunk.code_window:       if (config === null) {
           throw new SilentError('No config found. If you want to use global configuration, '
             + 'you need the --global argument.');
         }
         if (!rawArgs[0]) {
           throw new SilentError('No key specified. Run "ng help get" for usage.');
         }
         const value = config.get(rawArgs[0]);
         if (value === null || value === undefined) {
           throw new SilentError('Value cannot be found.');
  
hunk.labels: keep keep keep keep keep replace replace replace replace keep keep keep keep
hunk.file_path: packages/@angular/cli/commands/get.ts
hunk.type: replace
file: import { ExtraEntry, extraEntryParser } from '../models/webpack-configs/utils';
  
  // Sort chunks according to a predefined order:
  // inline, polyfills, all scripts, all styles, vendor, main
  export function packageChunkSort(appConfig: any) {
    let entryPoints = ['inline', 'polyfills', 'sw-register'];
  
    const pushExtraEntries = (extraEntry: ExtraEntry) => {
      if (entryPoints.indexOf(extraEntry.entry) === -1) {
        entryPoints.push(extraEntry.entry);
      }
    };
  
    if (appConfig.scripts) {
      extraEntryParser(appConfig.scripts, './', 'scripts').forEach(pushExtraEntries);
    }
  
    if (appConfig.styles) {
      extraEntryParser(appConfig.styles, './', 'styles').forEach(pushExtraEntries);
    }
  
    entryPoints.push(...['vendor', 'main']);
  
    function sort(left: any, right: any) {
      let leftIndex = entryPoints.indexOf(left.names[0]);
      let rightindex = entryPoints.indexOf(right.names[0]);
  
      if (leftIndex > rightindex) {
        return 1;
      } else if (leftIndex < rightindex) {
        return -1;
      } else {
        return 0;
      }
    }
  
    // We need to list of entry points for the Ejected webpack config to work (we reuse the function
    // defined above).
    (sort as any).entryPoints = entryPoints;
    return sort;
  }
  