-
Notifications
You must be signed in to change notification settings - Fork 244
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Filter duplicate extensions by src URL
Fixes #1191
- Loading branch information
1 parent
082fd32
commit 2efc49d
Showing
3 changed files
with
39 additions
and
4 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
16 changes: 16 additions & 0 deletions
16
...ptimizer/spec/transformers/valid/ReorderHeadTransformer/supports_esm/expected_output.html
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 |
---|---|---|
@@ -0,0 +1,16 @@ | ||
<!doctype html> | ||
<html ⚡> | ||
<head> | ||
<link rel="stylesheet" href="https://cdn.ampproject.org/v0.css"> | ||
<script async src="https://cdn.ampproject.org/v0.mjs" type="module" crossorigin="anonymous"></script> | ||
<script async nomodule src="https://cdn.ampproject.org/v0/amp-experiment-0.1.js" custom-element="amp-experiment"></script> | ||
<script async custom-element="amp-experiment" src="https://cdn.ampproject.org/v0/amp-experiment-0.1.mjs" type="module" crossorigin="anonymous"></script> | ||
<script async nomodule src="https://cdn.ampproject.org/v0/amp-mustache-0.2.js" custom-template="amp-mustache"></script> | ||
<script async custom-template="amp-mustache" src="https://cdn.ampproject.org/v0/amp-mustache-0.2.mjs" type="module" crossorigin="anonymous"></script> | ||
<link href="https://example.com/favicon.ico" rel="icon"> | ||
<link rel="preload" href="https://cdn.ampproject.org/v0.css" as="style"> | ||
<link href="https://fonts.googleapis.com/css?foobar" rel="stylesheet" type="text/css"> | ||
<link as="script" crossorigin="anonymous" href="https://cdn.ampproject.org/v0.mjs" rel="modulepreload"> | ||
</head> | ||
<body></body> | ||
</html> |
19 changes: 19 additions & 0 deletions
19
packages/optimizer/spec/transformers/valid/ReorderHeadTransformer/supports_esm/input.html
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 |
---|---|---|
@@ -0,0 +1,19 @@ | ||
<!doctype html> | ||
<html ⚡> | ||
<head> | ||
<script async nomodule src="https://cdn.ampproject.org/v0.js"></script> | ||
<script async src="https://cdn.ampproject.org/v0.mjs" type="module" crossorigin="anonymous"></script> | ||
<script async nomodule src="https://cdn.ampproject.org/v0/amp-mustache-0.2.js" custom-template="amp-mustache"></script> | ||
<script async custom-template="amp-mustache" src="https://cdn.ampproject.org/v0/amp-mustache-0.2.mjs" type="module" crossorigin="anonymous"></script> | ||
<script async nomodule src="https://cdn.ampproject.org/v0/amp-experiment-0.1.js" custom-element="amp-experiment"></script> | ||
<script async nomodule src="https://cdn.ampproject.org/v0/amp-experiment-0.1.js" custom-element="amp-experiment"></script> | ||
<script async custom-element="amp-experiment" src="https://cdn.ampproject.org/v0/amp-experiment-0.1.mjs" type="module" crossorigin="anonymous"></script> | ||
<script async custom-element="amp-experiment" src="https://cdn.ampproject.org/v0/amp-experiment-0.1.mjs" type="module" crossorigin="anonymous"></script> | ||
<link rel="stylesheet" href="https://cdn.ampproject.org/v0.css"> | ||
<link href="https://fonts.googleapis.com/css?foobar" rel="stylesheet" type="text/css"> | ||
<link href="https://example.com/favicon.ico" rel="icon"> | ||
<link as="script" crossorigin="anonymous" href="https://cdn.ampproject.org/v0.mjs" rel="modulepreload"> | ||
<link rel="preload" href="https://cdn.ampproject.org/v0.css" as="style"> | ||
</head> | ||
<body></body> | ||
</html> |