1.0.3 • Published 3 years ago

webpack-plugin-localtunnel v1.0.3

Weekly downloads
-
License
MIT
Repository
-
Last release
3 years ago

Webpack plugin localtunnel

Simple plugin to allow you to expose your webpack-dev-server over the internet using localtunnel

Installation

yarn add -D webpack-plugin-localtunnel

or

npm install -D webpack-plugin-localtunnel

Usage

const LocaltunnelPlugin = require('webpack-plugin-localtunnel')

module.exports = {
  devServer: {
    public: `${subdomain}.loca.lt`,
  },
  plugins: [new LocaltunnelPlugin({subdomain: 'my-subdomain'})],
}

Options

nametypenotes
subdomainstringUsed to create a custom URL <subdomian>.loca.it otherwise a random subdomain will be assigned
portnumberThe port that localtunnel needs to listen to. By default the plugin will pick up the webpack-dev-server port unless otherwise specified

Both options are optional, but subdomain is recommended to be set so you have a consistent URL