0.0.2 • Published 6 months ago

rollup-plugin-ngrok v0.0.2

Weekly downloads
-
License
MIT
Repository
-
Last release
6 months ago

rollup-plugin-ngrok

This is a Rollup plugin that starts an ngrok tunnel. It allows you to expose your local development server to the internet.

Installation

Install the plugin with npm:

npm install --save-dev rollup-plugin-ngrok

Usage

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.

API

The ngrokPlugin function takes an options object. The options are the same as the ngrok connect options.

License

MIT

0.0.2

6 months ago

0.0.1

6 months ago

1.0.0

6 months ago