-
-
Notifications
You must be signed in to change notification settings - Fork 308
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
[QUESTION] Some small features - are they needed to PR? #47
Comments
Hey @vladimmi I've been thinking about it.
What do you think about this? I also like the other idea, I'm just not really sure it belongs in minifier :p I'll think about that some more. |
Sure, you are free to do it as you wish 👍
That's why I decided to ask before starting to make tests and PR :) Pretty similar to image embedding (make one bigger file instead of many small requests) but... Got some troubles while thinking about that idea:
Maybe you'll have some inspiration and better ideas :) |
Just included I'm not going to go ahead with the other idea, for exactly the same reasons you already listed - haven't been able to come up with great solutions myself :) |
Sorry if this is incorrect place to ask - don't know where to place this question :)
I've forked your minifier and added some small features for my project. They can be a bit unrelated to main goal and not so useful for others so don't know are they worth to create tests and pull request.
you will have two files -
compressed.css
(as usual) andcompressed.gz.css
(with gzipped content). Of course, there is setter to disable this.with relative path to template. Minifier will get it, slightly compress (to one line without tabs and double spaces), escape quotes (checking surround ones if they are ' or ") and insert back. So you will have something like
in resulting code and can load all scripts and templates with one minified and compressed file.
Import directive ("@@import") can be customized to any string.
The text was updated successfully, but these errors were encountered: