Im doing React project. Process of react is bundle all files and inject in public/index.html
file. This process is like "watch
" activity.
I want same process but only bundling JS file in public
folder. like watch only JS file when changed/update. so I can link that JS file in any file I want.
By this approach I can use that JS file in any framework/technology like php,asp etc.
I guess webpack
can do that but I don't know how, other possible solution are OK if they work.