webpack-plugin-localtunnel

1.0.3 • Public • Published

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

name type notes
subdomain string Used to create a custom URL <subdomian>.loca.it otherwise a random subdomain will be assigned
port number The 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

Package Sidebar

Install

npm i webpack-plugin-localtunnel

Weekly Downloads

60

Version

1.0.3

License

MIT

Unpacked Size

4.49 kB

Total Files

5

Last publish

Collaborators

  • ahmedelgabri