ember-cli / broccoli-asset-rev

Broccoli plugin to add fingerprint checksums and CDN URLs to your assets
MIT License
87 stars 84 forks source link

nvm #96

Closed qm3ster closed 8 years ago

qm3ster commented 8 years ago

Can it be done so that

<script src="assets/appname.js">
background: url('/images/foo.png');

will turn into

<script src="https://subdomain.cloudfront.net/assets/342b0f87ea609e6d349c7925d86bd597.js">
background: url('https://subdomain.cloudfront.net/images/735d6c098496507e26bb40ecc8c1394d.png');

or even

<script src="https://subdomain.cloudfront.net/342b0f87ea609e6d349c7925d86bd597.js">
background: url('https://subdomain.cloudfront.net/735d6c098496507e26bb40ecc8c1394d.png');

You've got a great thing going with generating asset maps and both renaming files and relinking assets consistently, but customHash is far too inflexible. It would be better if there was additionally a way we could plug a function that modifies the path, filename, and/or extension.