Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No message output in browser for production #686

Closed
KingMario opened this issue Feb 19, 2019 · 1 comment
Closed

No message output in browser for production #686

KingMario opened this issue Feb 19, 2019 · 1 comment

Comments

@KingMario
Copy link

KingMario commented Feb 19, 2019

The project is developed using Angular.

For ng serve, development environment, everything is OK.

But for production, that is, after ng build and deployed in nginx, output http:request color: #6633FF +1s where http:request is the namespace, but no message is output.

Set breakpoint in formatArgs, and the args is after the call:
image

Tried 2.6.9 and 4.1.1, both result the same.

@KingMario
Copy link
Author

Looked into the built bundle, the replace in formatArgs is uglified to

    e[0].replace(/%[a-zA-Z%]/g, function (t) {
        '%%' !== t && '%c' === t && (i = ++r);
    })

Will investigate which uglifier caused this problem and file an issue to that library.

Hence close this issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant