Back to results
msanchezdev/rollup-plugin-ngrok(opens in a new tab)
Language: TypeScript
ngrok plugin for rollup
- stars
- 0
- watchers
- 1
- forks
- 0
- open issues
- 0
- Last updated
- 11/15/2023
Language: TypeScript
ngrok plugin for rollup
This is a Rollup plugin that starts an ngrok tunnel. It allows you to expose your local development server to the internet.
Install the plugin with npm:
npm install --save-dev rollup-plugin-ngrok
Add the plugin to your rollup config:
import ngrok from 'rollup-plugin-ngrok'; export default { input: 'src/index.js', output: { file: 'dist/bundle.js', format: 'cjs', }, plugins: [ ngrok({ addr: 8080, // your local development server port // other ngrok options... }), ], };
When you run your rollup build, it will start an ngrok tunnel and print the public URL to the console.
The ngrokPlugin function takes an options object. The options are the same as the ngrok connect options.
MIT