rollup-plugin-ngrok
TypeScript icon, indicating that this package has built-in type declarations

0.0.2 • Public • Published

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

Readme

Keywords

none

Package Sidebar

Install

npm i rollup-plugin-ngrok

Weekly Downloads

0

Version

0.0.2

License

MIT

Unpacked Size

11.9 kB

Total Files

6

Last publish

Collaborators

  • msanchezdev