You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// webpack.config.js'use strict';// our setup function adds behind-the-scenes bits to the config that all of our// examples needconst{ setup }=require('../../util');module.exports=setup({context: __dirname,entry: ['./app.js','../../../client/index.js?http://localhost:8080/'],output: {filename: 'bundle.js',},});
// scripts/start.js'use strict';constWebpack=require('webpack');constWebpackDevServer=require('../../../lib/Server');constwebpackConfig=require('./webpack.config');constcompiler=Webpack(webpackConfig);constdevServerOptions=Object.assign({},webpackConfig.devServer,{open: true,stats: {colors: true,},});constserver=newWebpackDevServer(compiler,devServerOptions);server.listen(8080,'127.0.0.1',()=>{console.log('Starting server on http://localhost:8080');});
Expected Behavior
Running the script should open browser.
Actual Behavior
Browser is not opened.
For Bugs; How can we reproduce the behavior?
git clone [email protected]:guoyunhe/webpack-dev-server.git
cd webpack-dev-server
npm install
cd examples/api/simple
node server.js
For Features; What is the motivation and/or use-case for the feature?
The text was updated successfully, but these errors were encountered:
Code
Expected Behavior
Running the script should open browser.
Actual Behavior
Browser is not opened.
For Bugs; How can we reproduce the behavior?
For Features; What is the motivation and/or use-case for the feature?
The text was updated successfully, but these errors were encountered: