scripts/build.js
Function build
has 84 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function build(previousFileSizes) {
console.log('Creating an optimized production build...');
webpack(config).run((err, stats) => {
if (err) {
printErrors('Failed to compile.', [err]);
Function printErrors
has 32 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function printErrors(summary, errors) {
console.log(chalk.red(summary));
console.log();
errors.forEach(err => {
let linePointer;