{"library":"open-browser-webpack-plugin","title":"open-browser-webpack-plugin","description":"Opens a new browser tab when Webpack finishes its first compilation. Current stable version is 0.0.5 (released March 2017). No recent updates; plugin uses the webpack 'done' hook and relies on the 'open' npm package under the hood. It is more limited than alternatives like open-browser-webpack-plugin or webpack-open-plugin, with no support for Webpack 4+ hooks or multi-compiler mode. Suitable only for simple single-compiler Webpack 1-3 setups.","language":"javascript","status":"deprecated","last_verified":"Sat Apr 25","install":{"commands":["npm install open-browser-webpack-plugin"],"cli":null},"imports":["var OpenBrowserPlugin = require('open-browser-webpack-plugin');","const OpenBrowserPlugin = require('open-browser-webpack-plugin');","new OpenBrowserPlugin({ url: 'http://localhost:3000' })"],"auth":{"required":false,"env_vars":[]},"quickstart":{"code":"const path = require('path');\nconst OpenBrowserPlugin = require('open-browser-webpack-plugin');\n\nmodule.exports = {\n  entry: path.resolve(__dirname, 'src/index.js'),\n  output: {\n    path: path.resolve(__dirname, 'dist'),\n    filename: 'bundle.js'\n  },\n  plugins: [\n    new OpenBrowserPlugin({ url: 'http://localhost:8080' })\n  ]\n};","lang":"javascript","description":"Shows how to add the plugin to a Webpack 1-3 config; opens browser at localhost:8080 on first compile.","tag":null,"tag_description":null,"last_tested":null,"results":[]},"compatibility":null}