File tree Expand file tree Collapse file tree 2 files changed +13
-2
lines changed Expand file tree Collapse file tree 2 files changed +13
-2
lines changed Original file line number Diff line number Diff line change 1
- document . write ( "iioooooi---------iiiiii " ) ;
1
+ document . write ( "iiii " ) ;
2
2
3
3
4
4
Original file line number Diff line number Diff line change 4
4
5
5
'use strict' ;
6
6
7
+ const path = require ( 'path' ) ;
8
+
9
+
7
10
let webpack = require ( 'webpack' ) ;
8
11
let WebpackDevServer = require ( 'webpack-dev-server' ) ;
9
12
10
13
11
14
var config = require ( "./webpack.config.js" ) ;
12
- // config.entry.app.unshift("webpack-dev-server/client?http://localhost:8080/");
15
+ config . entry . app . unshift ( "webpack-dev-server/client?http://localhost:8080/" ) ;
13
16
var compiler = webpack ( config ) ;
14
17
var server = new WebpackDevServer ( compiler , {
18
+
19
+ // server the static html
20
+ contentBase :path . join ( __dirname , 'build' ) ,
21
+
22
+ // NodeJS API: server js from this path
23
+ publicPath : "/assets/"
24
+
25
+
15
26
} ) ;
16
27
server . listen ( 8080 ) ;
You can’t perform that action at this time.
0 commit comments