View in #ohif on Slack
@Johnmark_Enriquez: Hi Everyone,
I’m seeking guidance on the proper way to build for production.
Note: This is embedded in my application as an iframe.
My current flow for creating a production build is as follows:
cd platform/app
yarn run build
This is my build (see the first image below). However, I’ve noticed that my app.bundle.js
file is 12.8MB, which seems quite large.
Upon investigating, I looked at the viewer.ohif build (see the second image below). I’m wondering if I might have made a mistake in my build process for production.
Should I be running yarn run build
in the root instance or in the platform/app
directory?
Any suggestions or inputs would be much appreciated.
Thank you!
@Jaeyoung_Cho_(Joey_Cho): I always run at the root path with APP_CONFIG (config/your_config.js)
@Johnmark_Enriquez: In the root path right?
Not in the platform/app?
@Jaeyoung_Cho_(Joey_Cho): Yes
Because you need to build extension… and other folders as well