Skip to content

A proxy server that minify version of js files: 6-888 to 5.1

License

Notifications You must be signed in to change notification settings

proxy-m/js888to5-proxy-server

Repository files navigation

babel-proxy-server

A proxy server that babelifies js files

If you want to share your parent git folder

npm run server

How to use it ?

You just need to specify where the original files are either on a http server or a local file system. If it is on the local system don't forget to add 3 forward slashes /

node src/server.js --proxyTarget=file:///Users/xyz/

Options:

  • --noBabel : use it only as a proxy, don't transpile

This instruction would then create a webserver using as base the folder /Users/xyz and babelifies all the javascript files while keeping intact the other files. By default the webserver is available on port 9898.

Usage with ngrok

In coordination of ngrok it will also allow to have a public URL allowing to test local developement (please visit https://ngrok.com/). For instance if you execute ngrok http 9898 you will get a public http link allowing to access your local files currently in development.