News for hackers. Stuff that matters.
Re:How it feels to learn JavaScript in 2017 by acemarke on Sunday August 27, 2017 @12:08PM (#15111320)
I think the issue the parent is referring to is that CRA's Webpack configs only define a single "entry point", for your index.js, where each entry point becomes a separate bundle in and of itself. Having multiple entry points, like an "app page" and an "admin page", would require editing the Webpack config, which CRA deliberately keeps abstracted and hidden away until you eject.

If you really want to be able to modify the Webpack config for a CRA app, you have a couple other options besides ejecting:

- Create your own custom fork of the react-scripts ( https://github.com/facebookincubator/create-react-app/tree/m... ) package that CRA uses

- Use the react-app-rewired (https://github.com/timarney/react-app-rewired) tool , which lets you override parts of the build config within your project.

Re:How it feels to learn JavaScript in 2017 by oelmekki on Sunday August 27, 2017 @01:51PM (#15111788)
Oh, you're right, thus the "huge js file". Thanks for pointing it.