Emitting build file from create-react-app

Viewed 797

create-react-app uses webpack-dev-server in development mode (i.e. react-scripts start) to run a local server on port 3000, making compiled code available to the browser at http://localhost:3000/static/js/bundle.js.

I'd like webpack-dev-server to emit this as a real file so I can point to is from a symlink on the filesystem. Is this an easy configuration change? The config they are using is here: https://github.com/facebookincubator/create-react-app/blob/master/packages/react-scripts/config/webpack.config.dev.js

1 Answers

Well, the solution is to just eject the config out of create-react-app.

Related