1
0
mirror of https://github.com/mrclay/minify.git synced 2025-08-26 23:34:44 +02:00

12 Commits

Author SHA1 Message Date
Andrew Welch
0f607be23a Exclude SSI Comments (#670)
* Exclude SSI comments

Exclude Nginx & Apache Server Side Include (SSI) comments from being stripped via minification, the same way IE directives are not stripped.

Both Nginx & Apache SSI directives begin with:

<!—#

So we can just look for the # and don’t strip the comment in that case.

Nginx SSI: http://nginx.org/en/docs/http/ngx_http_ssi_module.html

Apache SSI: https://httpd.apache.org/docs/2.4/howto/ssi.html

* Add tests for Nginx/Apache SSI directives

Co-authored-by: Andrew Welch <andrew@keluli.local>
2020-04-02 22:45:11 +03:00
Steve Clay
ed239fbb8b Update CSSmin to v4 2017-06-08 20:38:43 +03:00
Steve Clay
e904f2e1ae ImportProcessor can handle URIs with query strings
Fixes #479
2017-04-03 16:50:53 -04:00
Steve Clay
12b9096b23 URI rewriter passes through empty URLs
Fixes #561
2017-01-18 18:48:24 -05:00
Elan Ruusamäe
8fe915f486 test $jscomp polyfill output 2016-12-06 17:11:04 +02:00
Elan Ruusamäe
8949df33dd add testcase for js minify that produces $jscomp polyfills
with recent closure compiler default input language has changed from ES3 to ES6 produces $jscomp polyfills
2016-12-06 14:46:46 +02:00
Elan Ruusamäe
2bd69ca5b1 test scssphp functionality
tested cache dependencies
2016-10-13 12:21:09 +03:00
Steve Clay
2045731d60 Improve Minify_Lines algorithm and add tests
Fixes #531
Fixes #534
2016-05-19 15:14:27 -04:00
Steve Clay
865946c0ed Merge branch '2.x' into merge2x
Conflicts:
	.gitignore
	HISTORY.txt
	README.md
	config.php
	docs/CookBook.wiki.md
	docs/CustomSource.wiki.md
	lib/Minify/CSS/UriRewriter.php
	min/lib/DooDigestAuth.php
	min/lib/FirePHP.php
	min/lib/JSMinPlus.php
	min/lib/Minify/Controller/Base.php
	min/lib/Minify/Loader.php
	min/lib/Minify/Logger.php
2016-05-12 11:03:16 -04:00
Elan Ruusamäe
c387014e27 add test for #500 2016-01-20 13:21:11 +02:00
Elan Ruusamäe
f5c12ad0f4 add test for closure compiler tags validation
https://code.google.com/p/closure-compiler/issues/detail?id=513
2015-12-16 22:43:32 +02:00
Steve Clay
316a109032 Port last of min_unit_tests, remove references to it, add composer script 2015-11-22 13:57:53 -05:00