0

i want to have a javascript file accessible using url. like i have myfile.js and i want that file to apear on localhost:3000/myfile.js

is there any way to do that in create react app or if not how can i do that using webpack? CopyWebPackPlugin should work? by the way i want to use es module like import thing in that file so i guess i can't have it inside public folder but its fine if i get the compliled one by webpack.

or if there is some other way of doing this would be very much helpful.

Shyam
  • 21
  • 3

0 Answers0