MCPcopy
hub / github.com/webpack/webpack-dev-server / logEnabledFeatures

Function logEnabledFeatures

client-src/index.js:244–261  ·  view source on GitHub ↗
(features)

Source from the content-addressed store, hash-verified

242 * @param {Features} features features
243 */
244const logEnabledFeatures = (features) => {
245 const listEnabledFeatures = Object.keys(features);
246 if (!features || listEnabledFeatures.length === 0) {
247 return;
248 }
249
250 let logString = "Server started:";
251
252 // Server started: Hot Module Replacement enabled, Live Reloading enabled, Overlay disabled.
253 for (let i = 0; i < listEnabledFeatures.length; i++) {
254 const key = /** @type {keyof Features} */ (listEnabledFeatures[i]);
255 logString += ` ${key} ${features[key] ? "enabled" : "disabled"},`;
256 }
257 // replace last comma with a period
258 logString = logString.slice(0, -1).concat(".");
259
260 log.info(logString);
261};
262
263logEnabledFeatures(enabledFeatures);
264

Callers 1

index.jsFile · 0.85

Calls 1

infoMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…