-
-
Notifications
You must be signed in to change notification settings - Fork 4.9k
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
Minify html template #385
Comments
Having same issue while using the minified javascript. Have anyone got a work around? |
Disable mangling in js minify, and be careful with html minify - it could break ng2 templates |
the RangeError: Maximum call stack size exceeded error is a problem with Angular 2's JIT templates. I set mangle to false so you should be good |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I being using
template: require('./user/user.component.ts')
in all component. However with a big app that have lots of html the bundled file becomes really large. So I am trying to minify the html by using html-loader.And here is my config for html-loader
Then I build it with
The resulting html is minified but when I serve the app, I keep getting the following errors in the browser console
This error does not happen if I don't minify it. I am wondering if anyone else have tried to minify their html, any help is appreciated. Thanks
The text was updated successfully, but these errors were encountered: