MCPcopy Create free account
hub / github.com/SZzzzz/react-scripts-ts-antd / before

Function before

config/webpackDevServer.config.js:97–106  ·  view source on GitHub ↗
(app)

Source from the content-addressed store, hash-verified

95 public: allowedHost,
96 proxy,
97 before(app) {
98 // This lets us open files from the runtime error overlay.
99 app.use(errorOverlayMiddleware());
100 // This service worker file is effectively a 'no-op' that will reset any
101 // previous service worker registered for the same host:port combination.
102 // We do this in development to avoid hitting the production cache if
103 // it used the same host and port.
104 // https://github.com/facebookincubator/create-react-app/issues/2272#issuecomment-302832432
105 app.use(noopServiceWorkerMiddleware());
106 },
107 };
108};

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected