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

use jclem's asset-rewrite #54

Closed csquared closed 9 years ago

csquared commented 9 years ago
1) broccoli-asset-rev will prepend if set:

      AssertionError: index.html: does not match expected output
      + expected - actual

         <meta charset="utf-8">

         <title>Application</title>

      -  <link rel="stylesheet" href="https://foobar.cloudfront.net//styles-daff78e51cc77ea97e75a7fd9c5f6fae.css">
      -  <link rel="icon" href="https://foobar.cloudfront.net//images/icons/favicon-63c59ffade880971af3567086267e69a.png">
      +  <link rel="stylesheet" href="https://foobar.cloudfront.net/styles-daff78e51cc77ea97e75a7fd9c5f6fae.css">
      +  <link rel="icon" href="https://foobar.cloudfront.net/images/icons/favicon-63c59ffade880971af3567086267e69a.png">
       </head>
       <body>
      -  <script type="text/javascript" src="https://foobar.cloudfront.net//assets/application-058eb02dfd08e347c40ae14e9f2e4600.js"></script>
      -  <script type="text/javascript" src=https://foobar.cloudfront.net//assets/application-058eb02dfd08e347c40ae14e9f2e4600.js></script>
      +  <script type="text/javascript" src="https://foobar.cloudfront.net/assets/application-058eb02dfd08e347c40ae14e9f2e4600.js"></script>
      +  <script type="text/javascript" src=https://foobar.cloudfront.net/assets/application-058eb02dfd08e347c40ae14e9f2e4600.js></script>
       </body>
       </html>

      at tests/filter-tests.js:25:12
      at Array.forEach (native)
      at confirmOutput (tests/filter-tests.js:19:17)
      at tests/filter-tests.js:120:7

  2) broccoli-asset-rev skips fingerprint and prepends when set and customHash is null:

      AssertionError: index.html: does not match expected output
      + expected - actual

         <meta charset="utf-8">

         <title>Application</title>

      -  <link rel="stylesheet" href="https://foobar.cloudfront.net/https://foobar.cloudfront.net//styles.css">
      -  <link rel="icon" href="https://foobar.cloudfront.net/https://foobar.cloudfront.net//images/icons/favicon.png">
      +  <link rel="stylesheet" href="https://foobar.cloudfront.net/styles.css">
      +  <link rel="icon" href="https://foobar.cloudfront.net/images/icons/favicon.png">
       </head>
       <body>
      -  <script type="text/javascript" src="https://foobar.cloudfront.net/https://foobar.cloudfront.net/https://foobar.cloudfront.net/https://foobar.cloudfront.net//assets/application.js"></script>
      -  <script type="text/javascript" src=https://foobar.cloudfront.net/https://foobar.cloudfront.net/https://foobar.cloudfront.net/https://foobar.cloudfront.net//assets/application.js></script>
      +  <script type="text/javascript" src="https://foobar.cloudfront.net/assets/application.js"></script>
      +  <script type="text/javascript" src=https://foobar.cloudfront.net/assets/application.js></script>
       </body>
       </html>

      at tests/filter-tests.js:25:12
      at Array.forEach (native)
      at confirmOutput (tests/filter-tests.js:19:17)
      at tests/filter-tests.js:136:7