mirror of
https://github.com/embarklabs/embark.git
synced 2025-01-10 05:46:03 +00:00
f4626f8fec
Create React App automatically determines the base path for links within production build artifacts based on the project's `"homepage"` field in `package.json`. An [alternative][alt-setting] is to set the `PUBLIC_URL` environment variable in `.env.production`. Take that approach so embark-ui's `"homepage"` can continue to point to its home in the monorepo on GitHub. Generate source maps in the production build of embark-ui. Doing so increases the size of the package's tarball by a few MB (it was already large because of the editor component), but the benefits of being able to much more easily debug a production build (e.g. when interacting with users experiencing problems) outweigh the size cost. [alt-setting]: https://github.com/facebook/create-react-app/blob/master/packages/react-scripts/config/paths.js#L36
2 lines
13 B
Plaintext
2 lines
13 B
Plaintext
PUBLIC_URL=/
|