-
-
Notifications
You must be signed in to change notification settings - Fork 2k
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
force uglification on a certain scope? #1833
Comments
No, it is not currently possible to force only part of the document into pretty/normal mode. The general recommendation for this is to use the normal (non-pretty) mode which is the default for exactly this reason. You can explicitly add white space using |
I have problems with git. We keep both the source files and the the statically created html in one repo. The problem is, when using ugly mode, on each change of the jade files creates just one line in the html counterpart, for git the whole file has changed. but maybe I can create a workaround… thank you anyway 😃 |
@fuddl said:
What's the problem with that? |
it results in unnecessary merge conflicts. The html file has one line and it has been changed by both sides. that wouldn't happen to pretty html… |
@fuddl said:
I would use a hook or CI on your main repo to build the website whenever there is a push. |
Don't commit compiled/generated output. Just commit the source and add a bit ignore for the html. |
@TimothyGu @ForbesLindesay thanks, I managed to solve this problem using git settings… never the less, the Twig Template Engine has a |
Then use the Twig Template Engine. We're very much not in the business of checkbox comparisons against other templating engines. We're in the business of building the best JavaScript templating engine for producing HTML in dynamic websites. Experienced users almost always turn |
There are times and places where white space is important. Inline-block white space is the biggest use case. Take the following example:
If you want to center these links in the middle of the page without using The reason this is important to me is because I do front-end slicing and pass HTML off to someone else. Previously I was using HAML to generate the HTML, and having prettified output is important because I pass the HTML to another programmer that turns that slice into a template. It'd be nice to have an option to eliminate white space between elements on a case-by-case basis so prettified output can be used, and I don't have to fall back to typing out the full HTML when I don't want the white space. |
is there a way to force a certain scope of elements to be uglified?
I need certain elements to be without spaces or breaks between them while I want to keep the rest of the document pretty. is this possible somehow?
should turn into:
I need this to deal with inline-block whitespace
is there a solution for that?
The text was updated successfully, but these errors were encountered: