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" ) ;
2
3
3
4
module . exports = {
4
5
entry : './entry.js' ,
5
6
output : {
6
7
filename : 'bundle.js'
7
8
} ,
8
9
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
+ }
13
17
} ;
18
+
19
+ open ( "http://localhost:3000" , "firefox" ) ;
Original file line number Diff line number Diff line change 23
23
"homepage" : " https://github.com/hegdeashwin/learning-webpack#readme" ,
24
24
"devDependencies" : {
25
25
"css-loader" : " ^0.23.0" ,
26
+ "open" : " 0.0.5" ,
26
27
"open-browser-webpack-plugin" : " 0.0.1" ,
27
28
"style-loader" : " ^0.13.0"
28
29
}
You can’t perform that action at this time.
0 commit comments