diff options
author | 2022-03-09 21:52:31 +0000 | |
---|---|---|
committer | 2022-03-09 13:52:31 -0800 | |
commit | 4b53a53c1b7df094b5bd194955ff1c4cf7cc809f (patch) | |
tree | 250c7cda1161b9874ace9bcc999f1cf97c0b7740 /examples/subpath | |
parent | 43a5c06a9379fbe5f8f66e8fc9bf6879ad9b1dbf (diff) | |
download | astro-4b53a53c1b7df094b5bd194955ff1c4cf7cc809f.tar.gz astro-4b53a53c1b7df094b5bd194955ff1c4cf7cc809f.tar.zst astro-4b53a53c1b7df094b5bd194955ff1c4cf7cc809f.zip |
Update examples for 0.24.0 (#2740)
* removing Astro.resolve, adding sass dev dependencies
* updating tailwind example to use ESM style imports
* moving from `<style global>@import` to ESM imports
* updating lockfile to pick up examples sass deps
* chore(lint): ESLint fix
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Diffstat (limited to 'examples/subpath')
-rw-r--r-- | examples/subpath/package.json | 3 | ||||
-rw-r--r-- | examples/subpath/src/pages/index.astro | 2 |
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> |