我正在使用angular-cli for webpack。如何使用angular-CLI在控制台中显示日志
纳克服务
和构建成功,我看到
** NG直播开发服务器上运行http://localhost:4200。 ** 哈希值:dd30d5aeee6e21802b4d e时间:9397ms chunk {0} styles.bundle.js,styles.bundle.map(styles)163 kB {4} [initial] [rendered] chunk {1} main.bundle.js ,main.bundle.map(main)6.52 kB {3} [initial] [rendered] chunk {2} scripts.bundle.js,scripts.bundle.map(scripts)361 kB {4} [initial] [rendered] chunk {3} vendor.bundle.js,vendor.bundle.map(vendor)2.22 MB [initial] [rendered] chunk {4} inline.bundle.js,inline.bundle.map(inline)0 bytes [entry ] [rendered] webpack:bundle现在有效。
没有什么似乎是错的。但是当我访问http://localhost:4200时,我在控制台上看不到任何日志。无论如何,我可以打开控制台上的服务器日志?
有没有特别的东西在你的app.component.ts中没有显示console.log .. console.log(“Hello world”)。 –