Skip to content

Commit

Permalink
tests(artifacts): add css import to test site (#33982)
Browse files Browse the repository at this point in the history
  • Loading branch information
pieh authored Nov 16, 2021
1 parent a301dc0 commit fe2bcc8
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions integration-tests/artifacts/gatsby-browser.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@ const React = require(`react`)
const { useMoreInfoQuery } = require("./src/hooks/use-more-info-query")
const Github = require(`./src/components/github`).default

// global css import (make sure warm rebuild doesn't invalidate every file when css is imported)
require("./imported.css")

exports.wrapRootElement = ({ element }) => {
return (
<>
Expand Down
3 changes: 3 additions & 0 deletions integration-tests/artifacts/imported.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
.foo {
background: blue;
}

0 comments on commit fe2bcc8

Please sign in to comment.