How to deploy a single Js after the deployment of React18 ? #2683
Unanswered
mmehmoodahmed
asked this question in
Help
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
I am using React 18 with create-react-app template and redux-toolkit.
What I want is to deploy a public shareable Url
something like this
https://www.someserverurl.com/CWidget.js
I just want one shareable Js File including sass/css file.
I tried to make a deployment through npm run build but it create a lot of js, css, json and image files which I don't want.
Now I want to use Parcel .
Can I create a deployment As I mentioned above. I just Need a Single Js file after the deployment.
I want to use it through simple plain html with javascript.
I can simple html page can invoke my widget.
Kindly guide and assist
thank you
Beta Was this translation helpful? Give feedback.
All reactions