Skip to content

Commit

Permalink
refactor(server): move new helper to update compiler helper
Browse files Browse the repository at this point in the history
  • Loading branch information
knagaitsev committed Aug 2, 2019
1 parent 5e94cd4 commit ed0050e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
3 changes: 0 additions & 3 deletions lib/Server.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@ const createDomain = require('./utils/createDomain');
const runBonjour = require('./utils/runBonjour');
const routes = require('./utils/routes');
const getSocketServerImplementation = require('./utils/getSocketServerImplementation');
const setPublicPath = require('./utils/setPublicPath');
const schema = require('./options.json');

// Workaround for node ^8.6.0, ^9.0.0
Expand All @@ -60,8 +59,6 @@ class Server {
this.compiler = compiler;
this.options = options;

setPublicPath(compiler, options);

this.log = _log || createLogger(options);

if (this.options.serverMode !== undefined) {
Expand Down
3 changes: 3 additions & 0 deletions lib/utils/updateCompiler.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,11 @@
const webpack = require('webpack');
const addEntries = require('./addEntries');
const getSocketClientPath = require('./getSocketClientPath');
const setPublicPath = require('./setPublicPath');

function updateCompiler(compiler, options) {
setPublicPath(compiler, options);

if (options.inline !== false) {
const findHMRPlugin = (config) => {
if (!config.plugins) {
Expand Down

0 comments on commit ed0050e

Please sign in to comment.