-
Notifications
You must be signed in to change notification settings - Fork 433
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
Prod Build fails when using signalr #559
Comments
I had the same problem, and found this thread, but I am not sure what is the current state of a problem. |
Found a workaround on aspnet/SignalR#983 which is working for me. Need to replace: And I can now build for production with webpack.optimize.UglifyJsPlugin |
For anyone using the newer version SignalR |
@CybrZr00 @peterdobson @MaklaCof Changing one line in their tsconfig to es5 would fix it, strangely enough. |
Similar to issue Prod build failed #460 , but when using signalr the prod build fails with:
ERROR in main-client.js from UglifyJs
Unexpected token: name (NullLogger) [main-client.js:84763,6]
After removing webpack.optimize.UglifyJsPlugin lines from webpack.config.js it publishes OK, but obviously files don't get minified.
There is a recent related fix in signalr, selfdeceited/bird-aggregator@ef13204 using uglifyjs-webpack-plugin instead of webpack.optimize.UglifyJsPlugin. I've tried this fix but it causes the build to fail with this template
Anyone have any pearls of wisdom?
The text was updated successfully, but these errors were encountered: