Verified Commit 3a1f7826 authored by Aral Balkan's avatar Aral Balkan
Browse files

Log web compiler change and ssr events

parent 11cf1c4d
......@@ -72,6 +72,16 @@ if (process.env.NODE_ENV === 'production') {
webCompilerMiddleware.compiler.on('error', (nodeName, edgeName, error) => {
console.log('Compiler error', nodeName, edgeName, error)
})
webCompilerMiddleware.compiler.on('change', function (nodeName, edgeName, nodeState) {
var node = nodeState[nodeName][edgeName]
var name = nodeName + ':' + edgeName
console.log(' [web-compiler]', name)
})
webCompilerMiddleware.compiler.on('ssr', function (result) {
console.log(' [web compiler] SSR:', result.success ? 'success' : 'fail')
})
}
// Handle errors.
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment