1
0
mirror of https://github.com/mrclay/minify.git synced 2025-08-10 16:14:18 +02:00
Commit Graph

10 Commits

Author SHA1 Message Date
Elan Ruusamäe
eff278193b Apply php-cs-fixer new rules 2019-12-11 17:06:18 +02:00
Elan Ruusamäe
74042c87ad allow .scss via f= param. #549 2016-10-17 14:22:30 +03:00
Steve Clay
16c811cd93 Big style cleanup 2016-10-16 15:13:38 -04:00
Elan Ruusamäe
5fb7ea1ed1 phpcs: enable psr2 2016-10-16 18:51:49 +03:00
Steve Clay
24b601217e Merge pull request #512 from mrclay/deps
Large restructuring
2016-03-10 18:48:49 -05:00
Steve Clay
4710509c68 Large restructuring
Moves all dependency building into App
bootstrap.php returns an App instance
The app loads config files as necessary
Moves logging to Monolog
Moves HTTP digest auth to packagist component
Rely on sys_get_temp_dir
Env hosts $_POST and allows defaults when reading
HTML helper uses the App and can handle less files
Source factory assumes strings are filenames
Fixes JsClosureCompilerTest::test6 (API now handles ES5 by default)
Exclude JsClosureCompilerTest due to API limitations
config.php can now return a Minify\Config object
Variables set in config.php are now moved to a `Minify\Config` object,
allowing better static analysis.
The `zlib.output_compression` set is moved into `Minify::serve`.
2016-03-10 18:44:23 -05:00
Steve Clay
7dbd2c87e4 Minify no longer tries to minify -min.js/.min.js files
2.2 used empty string as a magical value meaning do not minify, but
in the refactoring `Minify::combineMinify` forgot to interpret this
value that way and instead inherited the default compressor for the type.

This eliminates `""` as a magical value, but for BC rewrites it to
`Minify::nullMinifier` in the sources.

Fixes #499
2016-02-26 11:17:55 -05:00
Elan Ruusamäe
379feaba99 do some trivial codestyle fixes
unix newlines, trailing spaces
2016-01-22 00:38:12 +02:00
Steve Clay
7c607ff932 Allow specifying files via $min_symlinks paths
If you have an alias/symlink like "//~name" => "/full/path", then you can
now serve with the more logical URL http://example.com/min/?f=~name/foo.css

Fixes #137
2015-09-28 21:50:32 -04:00
Steve Clay
e596b35fc4 Collapse "min" into project root and get unit tests working.
Fixes #472
2015-09-28 15:39:25 -04:00