Security News
The Unpaid Backbone of Open Source: Solo Maintainers Face Increasing Security Demands
Solo open source maintainers face burnout and security challenges, with 60% unpaid and 60% considering quitting.
open-browser-webpack-plugin
Advanced tools
Opens the browser when Webpack is ready serving your files.
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!
npm install open-browser-webpack-plugin --save-dev
Simply require the plugin and add it in the plugins section:
var OpenBrowserPlugin = require('open-browser-webpack-plugin');
module.exports = {
entry: path.resolve(__dirname, 'lib/entry.js'),
output: {
path: __dirname + "/bundle/",
filename: "bundle.js"
},
plugins: [
new OpenBrowserPlugin({ url: 'http://localhost:3000' })
]
};
Type: String
Default: http://localhost:8080
Url to open when Webpack is ready. Needs to have the prefix http://
or https://
in order to open the browser.
Type: Number
Default: 0
Optional
By default the browser is opened immediately, but this could be too early in some cases (eg. starting a nodeJS server). The value is specified in milliseconds.
Type: String
Optional
Browser to open. By default, it will try to open the browser set by default in your system.
Type: Boolean
Default: False
Optional
By default this plugin only opens the browser if there's no Webpack errors. Setting ignoreErrors to true will open a new tab no matter the compilation errors.
MIT License.
FAQs
Opens the browser when Webpack is ready serving your files.
The npm package open-browser-webpack-plugin receives a total of 4,839 weekly downloads. As such, open-browser-webpack-plugin popularity was classified as popular.
We found that open-browser-webpack-plugin demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Solo open source maintainers face burnout and security challenges, with 60% unpaid and 60% considering quitting.
Security News
License exceptions modify the terms of open source licenses, impacting how software can be used, modified, and distributed. Developers should be aware of the legal implications of these exceptions.
Security News
A developer is accusing Tencent of violating the GPL by modifying a Python utility and changing its license to BSD, highlighting the importance of copyleft compliance.