This website requires JavaScript.
Explore
Help
Sign In
embarklabs
/
embark
mirror of
https://github.com/embarklabs/embark.git
Watch
2
Star
0
Fork
You've already forked embark
0
Code
Issues
Projects
Releases
Wiki
Activity
372d0c03eb
embark
/
packages
/
embark-ui
/
.env.production
2 lines
13 B
Plaintext
Raw
Normal View
History
Unescape
Escape
fix(embark-ui): specify PUBLIC_URL=/ for production builds 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
2019-03-17 23:37:26 +00:00
PUBLIC_URL=/