-
Notifications
You must be signed in to change notification settings - Fork 42
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
ngmin is changing things it shouldn't #85
Comments
Why are you linting code after running it through pre-processors? |
Well why not? :) Let's say I'm checking up on you. Still, I want to make my code minify-able, that's why I use ngmin. If I want to minify it, I'll use uglify.js for example. So, is it possible to tell ngmin to just do "its job" and leave the rest for other plugins? |
Unless there's a real use for this behavior, I'm not interested in implementing it. If you want to submit a PR that fixes this, be my guest. |
@Francisc what is that code actually doing? im just curious |
Haha, it's Brian's code and it basically checks if both template and templateUrl were specified. It's kind of cryptic, but I liked the idea so I kept it. |
Brian: Real use for what behaviour? |
As in there's some distinct advantage to If you want to verify that your code still works after This behavior is a side effect of regenerating the code from an AST. The behavior of the code is the same. |
grunt-contrib-jshint's README indicates it's a real use case: This is not such a big issue for me though. |
Is there some other issue you're alluding to? |
No-no, I meant "make sure minification works with DI". ngmin does a few code minifications which aren't really useful to me. |
…ngmin#89, btford/ngmin#87, btford/ngmin#85, btford/ngmin#78, btford/ngmin#77, btford/ngmin#73, btford/ngmin#70, btford/ngmin#64, btford/ngmin#63, btford/ngmin#61, btford/ngmin#59, btford/ngmin#57, btford/ngmin#56, btford/ngmin#54, btford/ngmin#50, btford/ngmin#46, btford/ngmin#43, btford/ngmin#42, btford/ngmin#37, btford/ngmin#35, btford/ngmin#22
Please try https://github.com/olov/ng-annotate. ngmin is now deprecated: #93 If your issue isn't resolved there please open an issue at https://github.com/olov/ng-annotate/issues If you really want ngmin to fix this issue, feel free to fork it and use that. |
Thanks. I gave up on ngmin because it wasn't "honest". |
Hello,
I have a modal service that is inspired by your implementation.
The template check looks like this in the original file:
The same looks like this in the parsed file:
That causes JSHint to throw a warning about "confusing pluses".
It touches other parts of code as well.
Is there any way to ask ngmin to just makes sure DI will work and not touch other parts of the code?
Thanks.
The text was updated successfully, but these errors were encountered: