diff --git a/config/webpackDevServer.config.js b/config/webpackDevServer.config.js index 93c6858..d953f04 100644 --- a/config/webpackDevServer.config.js +++ b/config/webpackDevServer.config.js @@ -99,7 +99,7 @@ module.exports = function(proxy, allowedHost) { // We do this in development to avoid hitting the production cache if // it used the same host and port. // https://github.com/facebook/create-react-app/issues/2272#issuecomment-302832432 - app.use(noopServiceWorkerMiddleware()); + app.use(noopServiceWorkerMiddleware('/')); }, }; }; diff --git a/scripts/start.js b/scripts/start.js index 8ad4d48..6f369f0 100644 --- a/scripts/start.js +++ b/scripts/start.js @@ -79,7 +79,7 @@ checkBrowsers(paths.appPath, isInteractive) const appName = require(paths.appPackageJson).name; const urls = prepareUrls(protocol, HOST, port); // Create a webpack compiler that is configured with custom messages. - const compiler = createCompiler(webpack, config, appName, urls, useYarn); + const compiler = createCompiler({ webpack, config, appName, urls, useYarn }); // Load proxy config const proxySetting = require(paths.appPackageJson).proxy; const proxyConfig = prepareProxy(proxySetting, paths.appPublic);