UNPKG

open-browser-webpack4-plugin

Version:

Opens a new browser tab when Webpack loads. Very useful if you're lazy and don't want to force yourself to open a new tab when Webpack is ready to play!

13 lines (12 loc) 311 B
var path = require('path'); var OpenBrowserPlugin = require('../index'); module.exports = { entry: path.resolve(__dirname, 'lib/entry.js'), output: { path: __dirname + "/bundle/", filename: "bundle.js" }, plugins: [ new OpenBrowserPlugin({ url: 'http://localhost:3000' }) ] };