Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
before: app => {
app.use(bestPractices());
}
}
before(app) {
addImgOptMiddleware(
app,
Object.assign(
config.section('magento'),
config.section('imageService')
)
);
app.use(bestPractices());
}
}
devServer.before = (app, ...rest) => {
app.use(upward.bestPractices());
if (oldBefore) oldBefore(app, ...rest);
};
const oldAfter = devServer.after;