File tree Expand file tree Collapse file tree 2 files changed +12
-5
lines changed Expand file tree Collapse file tree 2 files changed +12
-5
lines changed Original file line number Diff line number Diff line change 1- var OpenBrowserPlugin = require ( 'open-browser-webpack-plugin' ) ;
1+ // var OpenBrowserPlugin = require('open-browser-webpack-plugin');
2+ var open = require ( "open" ) ;
23
34module . exports = {
45 entry : './entry.js' ,
56 output : {
67 filename : 'bundle.js'
78 } ,
89 plugins : [
9- new OpenBrowserPlugin ( {
10- url : 'http://localhost:8080'
11- } )
12- ]
10+ // new OpenBrowserPlugin({
11+ // url: 'http://localhost:3000'
12+ // }) // plugin is having issue https://github.com/baldore/open-browser-webpack-plugin/issues/4
13+ ] ,
14+ devServer : {
15+ port : 3000 // setting webpack-dev-server port
16+ }
1317} ;
18+
19+ open ( "http://localhost:3000" , "firefox" ) ;
Original file line number Diff line number Diff line change 2323 "homepage" : " https://github.com/hegdeashwin/learning-webpack#readme" ,
2424 "devDependencies" : {
2525 "css-loader" : " ^0.23.0" ,
26+ "open" : " 0.0.5" ,
2627 "open-browser-webpack-plugin" : " 0.0.1" ,
2728 "style-loader" : " ^0.13.0"
2829 }
You can’t perform that action at this time.
0 commit comments