Matthias Mullie
3fcd6421df
Add test for #183
2017-06-13 17:30:29 +02:00
Matthias Mullie
39a0ffe0cc
Suggest a cache package
2017-06-08 09:50:00 +02:00
Gordon Lesti
b50abfda5d
use travis dist: trusty
2017-06-08 09:14:37 +02:00
Matthias Mullie
b431a11bc5
Add test for #164
2017-04-19 14:47:29 +02:00
Matthias Mullie
da0a6b1261
Add test for #173
2017-04-19 14:42:53 +02:00
Matthias Mullie
a7fc4a98ef
Add test for #163
1.3.44
2017-03-16 17:42:50 +01:00
Matthias Mullie
19886d4292
Add test for #164
2017-03-16 17:40:19 +01:00
Matthias Mullie
04fe99d70d
Don't shorten and when used as object property
...
Fixes #167
2017-03-16 17:36:28 +01:00
Matthias Mullie
52c1f463b7
Specify delimiter
2017-03-16 17:15:25 +01:00
Matthias Mullie
d94a222089
Remove test var
2017-03-14 12:01:33 +01:00
Matthias Mullie
41dc7827da
Don't allow whitespace in unquoted url()
...
Fixed #162
2017-03-14 11:56:47 +01:00
Matthias Mullie
848353ecf2
Quote urls containing #
...
Fixes #165
2017-03-14 11:32:45 +01:00
Matthias Mullie
c4d5176846
Fix url() shortening with data uris containing )
...
Fixes #162
2017-03-14 11:18:46 +01:00
Matthias Mullie
aa50b2dab6
Fix unitless flex-basis, for IE
...
Fixes #159
1.3.43
2017-01-26 16:48:07 +01:00
Matthias Mullie
49061c0e06
Simplify regex, we can assume whitespace has been stripped already
2017-01-26 16:39:29 +01:00
Matthias Mullie
b48a6d34ff
Add jquery-3.1.1 to confirmation tests
...
Fixes #157
2017-01-26 11:47:38 +01:00
Matthias Mullie
b727c19ad3
Improve ;-deletion after for
...
Detection of a for-loop was a little shaky (still it,
but better now) and in some cases, a stray ; would be
left untouched.
2017-01-26 11:45:20 +01:00
Matthias Mullie
3086863ed0
Allow overriding the path-converter
...
While there is no "official" support to override or disable the
path converter, this will make it easier to not convert the paths.
Instead of editing files of this repo, you can just create a subclass
where getPathConverter returns a NoConverter instance.
Fixes #114
Fixes #153
2017-01-26 10:05:54 +01:00
Matthias Mullie
bfcc8053a2
Run tests on 7.0 & 7.1
2017-01-26 09:56:37 +01:00
Matthias Mullie
33048c5fab
Make add chainable
...
Fixes #125
2017-01-26 09:12:38 +01:00
Matthias Mullie
be5a61820f
Stricter checks for not importing absolute paths
...
Fixes #100
2017-01-26 09:12:17 +01:00
Matthias Mullie
cd15113398
Also simplify external links paths
...
For normal files, @import & url() syntax is unified
already (e.g. removing quotes around the path, where
not needed), but this was not done for external
paths.
This also simplifies the huge regex a little
2017-01-25 16:38:45 +01:00
Matthias Mullie
bc46e8b275
Add test for #150
2016-11-25 08:46:06 +01:00
Matthias Mullie
c0582c8451
Add test for #149
2016-11-23 15:24:58 +01:00
Matthias Mullie
b473affbb7
php-cs-fixer
1.3.42
2016-11-23 11:16:14 +01:00
Matthias Mullie
b38b1168b6
Add php-cs-fixer
2016-11-23 11:15:27 +01:00
Matthias Mullie
6340735c46
Fix incorrect color replacement for colors starting with #foo
2016-11-23 11:11:07 +01:00
Matthias Mullie
101a56354d
Restore previous regex extraction method
...
New code seems to have caused a few other issues, and the reason
for having changed it doesn't apply anymore (fixed elsewhere
already), so might as well restore this one :)
Fixes #146
1.3.41
2016-11-11 21:29:29 +01:00
Matthias Mullie
91c16fe4c2
Fix regex-extraction memory inefficiency
...
Fixes #147
2016-11-10 17:52:55 +01:00
Matthias Mullie
288b7c007e
Alternative regex matching
...
Fixes #146
2016-11-10 17:01:10 +01:00
Matthias Mullie
9bcf6e2d36
Fix ASI regex extraction
...
Fixes #143
1.3.40
2016-11-10 11:04:50 +01:00
Matthias Mullie
7dd8d25fdb
Improve regex detection
...
Fixes issue #142
2016-11-10 10:09:50 +01:00
Matthias Mullie
e93dffc8fa
Don't strip import statements before empty tags
...
Fixes issue #145
2016-11-09 22:15:24 +01:00
Matthias Mullie
1a6cb6b457
Move line-feed normalization, to only affect code files, not file imports
...
Fixes issue #139
1.3.39
2016-10-27 15:32:49 -07:00
Matthias Mullie
622e61c4e4
Merge branch 'smxsm-master'
2016-10-27 15:31:06 -07:00
Matthias Mullie
be217ebca1
Merge branch 'master' of https://github.com/smxsm/minify into smxsm-master
2016-10-27 15:30:54 -07:00
Stefan Moises
53d98cd557
replace CR linefeeds etc. when loading files
...
Replace "wrong" linefeeds, e.g. if a file was saved on MacOS with CR only
2016-10-16 10:40:12 +02:00
Matthias Mullie
de4bcf23b6
php-cs-fixer
1.3.38
2016-10-13 13:49:22 +02:00
Matthias Mullie
099f5ec75d
Fix passing array as argument to add
...
There were some issues with the interplay between an array
being passed, and the method being overloaded. Individually,
both would work, but when they're combined, it would fail.
2016-10-13 13:45:01 +02:00
Matthias Mullie
089afe6cd8
Merge pull request #132 from eko3alpha/master
...
Feature: Add ability to pass an array as an argument
2016-10-13 13:32:14 +02:00
Matthias Mullie
5bd843c5a4
Regex can also be followed by .
...
Fixes #138
2016-10-13 13:27:31 +02:00
Matthias Mullie
325e9b9dc1
Fix 0px minification in calc()
...
Fixes issue #137
1.3.37
2016-09-20 14:58:02 +02:00
Matthias Mullie
64f7d8a83b
Add test for issue #136
2016-09-14 17:07:23 +02:00
Matthias Mullie
52139dad41
Add test for issue #136
1.3.36
2016-09-14 13:31:25 +02:00
Matthias Mullie
f03da3f743
Don't shorten bools if they're object literal keys
...
Fixes issue #134
2016-09-14 13:27:15 +02:00
Matthias Mullie
9e0dfaf1b1
Only strip whitespace after other operations
...
Property notation, for example, alters the content. If we've stripped
whitespace first, the transformations in propertynotation may no
longer be correct.
Fixed issue #133
2016-09-14 13:22:15 +02:00
Matthias Mullie
97a8f64bab
Improve whitespace stripping around certain operators
...
1: some were not stripped agressively enough. E.g.:
return !0 -> return!0
2: some were stripped too aggressive. E.g.:
func()
{1+2}
Should not be joined on 1 line, since func() could be a function
call and {1+2} an unrelated piece of code
Fixes issue #130
2016-09-14 13:13:59 +02:00
Matthias Mullie
d63980b5cf
Regular expressions can also be followed by }
...
Fixes issue #124
2016-09-14 11:51:12 +02:00
Matthias Mullie
ac88354d6d
Simplify regex & add test case for issue 120
2016-09-14 10:41:50 +02:00
Matthias Mullie
9e008d4335
Merge pull request #121 from alexcorvi/master
...
extractRegex() pattern modified
2016-09-14 10:40:45 +02:00