-
-
Notifications
You must be signed in to change notification settings - Fork 8.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
build(webpack): remove publicPath so __webpack_public_path__ can be used to host assets #2835
Conversation
…se to host assets
This pull request is being automatically deployed with Vercel (learn more). 🔍 Inspect: https://vercel.com/excalidraw/excalidraw/luxsptd3t |
Haven't tried locally yet. So if CRA users don't supply |
@dwelle so for CRA(Since CRA internally serves lazy loading assets from |
This change would help us a lot at Slite! If there is anything we could do to help push this forward, let me know! |
Yep, this change will help host apps to host their assets and works fine with CRA(downloading the example and setting public URL works) and non-CRA apps. I have been waiting for code sandbox issue to get resolved so the example doesn't break but looks like it will take some time. I am ok with merging it. @dwelle what do you say? |
Forgot to get back to this. Feel free to merge. 👍 |
Will add this in next release which we will be doing soon 🎉 |
This will allow host to upload assets in CDN using
__webpack_public_path_
as mentioned here.For other cases host can load using script tag which will take care of loading the assets from CDN as shown here
__webpack_public_path_
is working for non CRA appsBlockers
EDIT
It's working fine with CRA as well I checked the same example in local. Looks like an issue with the code sandbox.
Works fine with non-CRA apps and CRA apps as well.