Change the way webpack compile warnings are surfaced
Right now we have a persistent webpack compile warning due to #321415 (closed)
These warnings appear in the webpack compile process output, but they do not cause the compile job to fail so it is easy for warnings to go unnoticed and for the changes that cause them to get merged into our master branch.
Furthermore, these warnings appear in the browser’s JS console on every page like so:
webpack-internal:///2CTa 125:8 "[WDS] Warnings while compiling."
webpack-internal:///2CTa 134:10 "./editor/editor_lite.js 59:13-29\nCritical dependency: the request of a dependency is an expression"
Our RSpec Capybara tests are configured to dump the JS console in the event of a test failure, so for any failure for any test in our codebase will include the lines above (despite likely having nothing to do with them) and add needless confusion about the actual source of the failure.
/cc @leipert @dmishunov
Edited by Mike Greiling