Closed kiuKisas closed 3 years ago
Agreed on both points. Working on those next. Main issue is that builds split request generation between processes and plugins don’t have a shared closure there. Will probably end up globbing the public html.
@kiuKisas Build mode is done. You could do a NODE_ENV=production
check in your elder.config.js
to turn the plugin on/off. Or we can add a flag.
Try:
'@elderjs/plugin-seo-check': {
display: process.NODE_ENV === 'production' ? ['errors', 'warnings']: [], // disables reporting unless you in production building.
},
That was fast, thank's :+1:
I'll give a try today
In my company, as I don't manage the content of the site, I don't need to be warn about most of the seo-check. It could be more handy to have a final report during build time. What I actually think of for my use case is to send a report to a slack channel at every build.
dev
mode, we should be able to disable it.build
mode, generate a full report and print a resume instead of printing it for each routes