scripts/start.js
Function setupCompiler
has 40 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function setupCompiler(host, port, protocol) {
// "Compiler" is a low-level interface to Webpack.
// It lets us listen to some events and provide our own custom messages.
compiler = webpack(config, handleCompile);
Function onProxyError
has 33 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function onProxyError(proxy) {
return function(err, req, res) {
const host = req.headers && req.headers.host;
console.log(
chalk.red("Proxy error:") +