-
-
Notifications
You must be signed in to change notification settings - Fork 83
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refactor to use broccoli-persistent-filter public APIs
NOTE: * overrides fewer `Filter` functions * simplifies implementation by making use of public APIs * avoids an extra readFileSync for every resource because hashing is done within `processString` (which has contents passed in as a param) rather than in `getDestFilePath` * unfortunately all image files (and files which reference them) in text fixtures had to be renamed because now the file contents as string rather than a Buffer are passed to the hash function and consequently produce different digests
- Loading branch information
Showing
30 changed files
with
56 additions
and
48 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes
File renamed without changes
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
tests/fixtures/basic/output/styles-daff78e51cc77ea97e75a7fd9c5f6fae.css
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,11 @@ | ||
.sample-img { | ||
width: 50px; | ||
height: 50px; | ||
background-image: url(images/sample-1f6b78f1b4667adc7e397f7bf94041ab.png); | ||
background-image: url(images/sample-b7caf246e908cd00d8011f370e3dd992.png); | ||
} | ||
|
||
.sample-img2 { | ||
width: 50px; | ||
height: 50px; | ||
background-image: url('images/sample-1f6b78f1b4667adc7e397f7bf94041ab.png'); | ||
background-image: url('images/sample-b7caf246e908cd00d8011f370e3dd992.png'); | ||
} |
File renamed without changes
File renamed without changes
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
...s/fixtures/customHash-function/output/styles-6c275657b4c8042d38718e75d8356f627bd58fe8.css
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,11 @@ | ||
.sample-img { | ||
width: 50px; | ||
height: 50px; | ||
background-image: url(images/sample-2c57d0d404fa94fd22023242d1f36faaaa7ad792.png); | ||
background-image: url(images/sample-a3eba6f18695684fa6df5d80f157d82277e93172.png); | ||
} | ||
|
||
.sample-img2 { | ||
width: 50px; | ||
height: 50px; | ||
background-image: url('images/sample-2c57d0d404fa94fd22023242d1f36faaaa7ad792.png'); | ||
background-image: url('images/sample-a3eba6f18695684fa6df5d80f157d82277e93172.png'); | ||
} |
File renamed without changes
File renamed without changes
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
tests/fixtures/exclude/output/styles-daff78e51cc77ea97e75a7fd9c5f6fae.css
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,11 @@ | ||
.sample-img { | ||
width: 50px; | ||
height: 50px; | ||
background-image: url(images/sample-1f6b78f1b4667adc7e397f7bf94041ab.png); | ||
background-image: url(images/sample-b7caf246e908cd00d8011f370e3dd992.png); | ||
} | ||
|
||
.sample-img2 { | ||
width: 50px; | ||
height: 50px; | ||
background-image: url('images/sample-1f6b78f1b4667adc7e397f7bf94041ab.png'); | ||
background-image: url('images/sample-b7caf246e908cd00d8011f370e3dd992.png'); | ||
} |
File renamed without changes
File renamed without changes
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
tests/fixtures/existing-manifest/output/styles-daff78e51cc77ea97e75a7fd9c5f6fae.css
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,11 @@ | ||
.sample-img { | ||
width: 50px; | ||
height: 50px; | ||
background-image: url(images/sample-1f6b78f1b4667adc7e397f7bf94041ab.png); | ||
background-image: url(images/sample-b7caf246e908cd00d8011f370e3dd992.png); | ||
} | ||
|
||
.sample-img2 { | ||
width: 50px; | ||
height: 50px; | ||
background-image: url('images/sample-1f6b78f1b4667adc7e397f7bf94041ab.png'); | ||
background-image: url('images/sample-b7caf246e908cd00d8011f370e3dd992.png'); | ||
} |
File renamed without changes
File renamed without changes
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
tests/fixtures/extensions/output/styles-107bca768dc01cba6b2c0d102c977586.css
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes
File renamed without changes
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
tests/fixtures/manifest/output/styles-daff78e51cc77ea97e75a7fd9c5f6fae.css
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,11 @@ | ||
.sample-img { | ||
width: 50px; | ||
height: 50px; | ||
background-image: url(images/sample-1f6b78f1b4667adc7e397f7bf94041ab.png); | ||
background-image: url(images/sample-b7caf246e908cd00d8011f370e3dd992.png); | ||
} | ||
|
||
.sample-img2 { | ||
width: 50px; | ||
height: 50px; | ||
background-image: url('images/sample-1f6b78f1b4667adc7e397f7bf94041ab.png'); | ||
background-image: url('images/sample-b7caf246e908cd00d8011f370e3dd992.png'); | ||
} |
File renamed without changes
File renamed without changes
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
tests/fixtures/prepend/output/styles-daff78e51cc77ea97e75a7fd9c5f6fae.css
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,11 @@ | ||
.sample-img { | ||
width: 50px; | ||
height: 50px; | ||
background-image: url(https://foobar.cloudfront.net/images/sample-1f6b78f1b4667adc7e397f7bf94041ab.png); | ||
background-image: url(https://foobar.cloudfront.net/images/sample-b7caf246e908cd00d8011f370e3dd992.png); | ||
} | ||
|
||
.sample-img2 { | ||
width: 50px; | ||
height: 50px; | ||
background-image: url('https://foobar.cloudfront.net/images/sample-1f6b78f1b4667adc7e397f7bf94041ab.png'); | ||
background-image: url('https://foobar.cloudfront.net/images/sample-b7caf246e908cd00d8011f370e3dd992.png'); | ||
} |