File tree Expand file tree Collapse file tree 1 file changed +8
-7
lines changed Expand file tree Collapse file tree 1 file changed +8
-7
lines changed Original file line number Diff line number Diff line change @@ -5,14 +5,14 @@ const webpack = require('webpack')
5
5
const HtmlWebpackPluginConfig = {
6
6
filename : 'index.html' ,
7
7
template : './template/index.html' ,
8
- inject :'body' ,
8
+ inject : 'body' ,
9
9
}
10
10
11
11
module . exports = {
12
12
context : path . resolve ( __dirname , '../src' ) ,
13
13
entry : './main' ,
14
14
output :{
15
- path :path . resolve ( __dirname , '../dist' ) ,
15
+ path : path . resolve ( __dirname , '../dist' ) ,
16
16
filename : './[hash]app.js' ,
17
17
hashDigestLength : 8
18
18
} ,
@@ -46,11 +46,12 @@ module.exports = {
46
46
] ,
47
47
devServer : {
48
48
contentBase : path . resolve ( __dirname , "../dist" ) ,
49
- port : 3000 ,
49
+ port : 3000 ,
50
+ host : '0.0.0.0' ,
50
51
open : true , // open browser auto
51
- index :'index.html' , // like HtmlWebpackPlugin
52
- inline :true , // default:true
53
- hot :false ,
54
- compress :true // compress
52
+ index : 'index.html' , // like HtmlWebpackPlugin
53
+ inline : true , // default:true
54
+ hot : false ,
55
+ compress : true // compress
55
56
}
56
57
}
You can’t perform that action at this time.
0 commit comments