I am using React 18 with create-react-app template and redux-toolkit. I want 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.
I want to use Parcel or webpack and gulp.
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.