File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -33,7 +33,6 @@ const createDomain = require('./utils/createDomain');
33
33
const runBonjour = require ( './utils/runBonjour' ) ;
34
34
const routes = require ( './utils/routes' ) ;
35
35
const getSocketServerImplementation = require ( './utils/getSocketServerImplementation' ) ;
36
- const setPublicPath = require ( './utils/setPublicPath' ) ;
37
36
const schema = require ( './options.json' ) ;
38
37
39
38
// Workaround for node ^8.6.0, ^9.0.0
@@ -60,8 +59,6 @@ class Server {
60
59
this . compiler = compiler ;
61
60
this . options = options ;
62
61
63
- setPublicPath ( compiler , options ) ;
64
-
65
62
this . log = _log || createLogger ( options ) ;
66
63
67
64
if ( this . options . serverMode !== undefined ) {
Original file line number Diff line number Diff line change 7
7
const webpack = require ( 'webpack' ) ;
8
8
const addEntries = require ( './addEntries' ) ;
9
9
const getSocketClientPath = require ( './getSocketClientPath' ) ;
10
+ const setPublicPath = require ( './setPublicPath' ) ;
10
11
11
12
function updateCompiler ( compiler , options ) {
13
+ setPublicPath ( compiler , options ) ;
14
+
12
15
if ( options . inline !== false ) {
13
16
const findHMRPlugin = ( config ) => {
14
17
if ( ! config . plugins ) {
You can’t perform that action at this time.
0 commit comments