clear(); if (initial) return (initial = false); // eslint-disable-line no-return-assign reloadApp(); }, warnings(warnings) { log.warn('[WDS] Warnings while compiling.'); const strippedWarnings = warnings.map((warning) => stripAnsi(warning)); sendMsg('Warnings', strippedWarnings); ...
self.location.reload(); },warnings:functionwarnings(_warnings) {// 编译出现警告后推送log.warn('Warnings while compiling.');varstrippedWarnings = _warnings.map(function(warning) {returnstripAnsi(warning); });sendMessage('Warnings', strippedWarnings);for(vari =0; i < strippedWarnings.length; i+...
console.log("webpack-dev-server: Warnings while compiling."); for(var i = 0; i < warnings.length; i++) console.warn(warnings[i]); if(initial) return initial = false; reloadApp(); }); io.on("errors", function(errors) { console.log("webpack-dev-server: Errors while compiling."...
showMessage(warnings); if(initial) return initial = false; reloadApp(); }, errors: function(errors) { log("info", "[WDS] Errors while compiling. Reload prevented."); var strippedErrors = errors.map(function(error) { return stripAnsi(error); }); sendMsg("Errors", strippedErrors); for(...
The bar at the top should display `Errors while compiling. App updated with errors. No reload!` with a stack trace underneath it. Then, in `app.js`, uncomment the code that results in a warning. The bar at the top should display `Warnings while compiling.`. 7 changes: 7 additions &...