-
-
Notifications
You must be signed in to change notification settings - Fork 2.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
?url imports should be ignored as well
- Loading branch information
Tony Sullivan
committed
Apr 7, 2022
1 parent
8d10160
commit b286b60
Showing
5 changed files
with
13 additions
and
14 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
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
9 changes: 3 additions & 6 deletions
9
packages/astro/test/fixtures/astro-css-bundling-import/src/pages/page-3.astro
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,15 +1,12 @@ | ||
--- | ||
import PageLayout from "../layouts/InlineLayout.astro" | ||
import styles from "../styles/page-three.css?raw" | ||
import stylesUrl from "../styles/page-one.css?url" | ||
--- | ||
|
||
<PageLayout title="Page 3"> | ||
<style set:html={styles}></style> | ||
|
||
<h1>Page 2</h1> | ||
<p>This text should be green, because we want <code>page-2.css</code> to override <code>site.css</code></p> | ||
<p>This works in the dev-server. However in the prod build, the text is blue. Execute <code>npm run build</code> and then execute <code>npx http-server dist/</code>.</p> | ||
<p>We can view the built html at <a href="https://github-qoihup--8080.local.webcontainer.io/page-2/">https://github-qoihup--8080.local.webcontainer.io/page-2/</a>. The color there is blue.</p> | ||
|
||
<p>If it helps debug the issue, rename the <code>page-1.astro</code> file to <code>page-1.astro.bak</code>. Build the prod site and view it. This time the color is green.</p> | ||
<h1>Page 3</h1> | ||
<p>This text should be purple, because we want the inlined <code>page-3.css</code> to override <code>site.css</code></p> | ||
</PageLayout> |
2 changes: 1 addition & 1 deletion
2
packages/astro/test/fixtures/astro-css-bundling-import/src/styles/page-three.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,3 +1,3 @@ | ||
p { | ||
color: yellow; | ||
color: purple; | ||
} |