ShakaCode | ShakaCode Blog | Rails On Maui Blog | Rails | ReactJs | JavaScript | Webpack | Productivity |

Best practice for multiple entries/registrations/components in Webpack config


#1

Hi, this is from one of the example app:

entry: {   
  'app-bundle': [ 
    './app/bundles/comments/startup/clientRegistration',
   ]
}

Does that imply every component/bundle need to be added in the config manually?

entry: {   
  'app-bundle': [ 
    './app/bundles/comments/startup/clientRegistration',
    './app/bundles/header/startup/clientRegistration',
    './app/bundles/footer/startup/clientRegistration',
   ]
}

Is there a more efficient way to do this?