summaryrefslogtreecommitdiff
path: root/examples/subpath
diff options
context:
space:
mode:
Diffstat (limited to 'examples/subpath')
-rw-r--r--examples/subpath/package.json3
-rw-r--r--examples/subpath/src/pages/index.astro2
2 files changed, 3 insertions, 2 deletions
diff --git a/examples/subpath/package.json b/examples/subpath/package.json
index 55001eee2..8ac5cedee 100644
--- a/examples/subpath/package.json
+++ b/examples/subpath/package.json
@@ -10,6 +10,7 @@
},
"devDependencies": {
"@astrojs/renderer-react": "^0.5.0",
- "astro": "^0.24.0-next.0"
+ "astro": "^0.24.0-next.0",
+ "sass": "^1.49.9"
}
}
diff --git a/examples/subpath/src/pages/index.astro b/examples/subpath/src/pages/index.astro
index 44cb83358..a7620accd 100644
--- a/examples/subpath/src/pages/index.astro
+++ b/examples/subpath/src/pages/index.astro
@@ -1,4 +1,5 @@
---
+import '../styles/main.scss';
import Time from '../components/Time.jsx';
---
@@ -6,7 +7,6 @@ import Time from '../components/Time.jsx';
<head>
<meta charset="utf-8" />
<link rel="icon" type="image/x-icon" href="/favicon.ico" />
- <link rel="stylesheet" href={Astro.resolve('../styles/main.scss')} />
<meta name="viewport" content="width=device-width" />
<title>Welcome to Astro</title>
</head>