一覧へ戻る
msanchezdev/rollup-plugin-ngrok(新しいタブで開きます)
主要言語: TypeScript
ngrok plugin for rollup
- star 数
- 0
- watcher 数
- 1
- fork 数
- 0
- issue 数
- 0
- 最終更新
- 2023/11/15
主要言語: 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