Skip to content

Commit

Permalink
Removes all references to enhance styles from plugin and test mocks.
Browse files Browse the repository at this point in the history
  • Loading branch information
kj committed Feb 28, 2024
1 parent cbda75f commit 52c626e
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 11 deletions.
6 changes: 0 additions & 6 deletions src/http/any-catchall/templates/head.mjs
Original file line number Diff line number Diff line change
@@ -1,9 +1,4 @@
import { getStyles } from '@enhance/arc-plugin-styles'

export default function Head () {
const styles = process.env.ARC_LOCAL
? getStyles.linkTag()
: getStyles.styleTag()

return `
<!DOCTYPE html>
Expand All @@ -12,7 +7,6 @@ export default function Head () {
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title></title>
${styles}
<link rel="icon" href="/_public/favicon.svg">
</head>
`
Expand Down
5 changes: 0 additions & 5 deletions test/mock-preflight/app/head.mjs
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
import { getStyles } from '@enhance/arc-plugin-styles'

const { linkTag } = getStyles

export default function Head (state) {
const { store = {} } = state
const { pageTitle = 'Enhance Starter Project' } = store
Expand All @@ -12,7 +8,6 @@ export default function Head (state) {
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>${pageTitle}</title>
${linkTag()}
<link rel="icon" href="/_public/favicon.svg">
<meta name="description" content="The HTML first full stack web framework.">
</head>
Expand Down

0 comments on commit 52c626e

Please sign in to comment.