Skip to content

Commit 1dddb72

Browse files
committed
Swap stylus to sass
As it has better tooling Most of this will become css vars anyway
1 parent 3ee2914 commit 1dddb72

63 files changed

Lines changed: 6475 additions & 3255 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

demo/package-lock.json

Lines changed: 1906 additions & 661 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

demo/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
"@types/react": "^18.2.14",
2727
"@types/react-dom": "^18.2.4",
2828
"concurrently": "^5.2.0",
29-
"esbuild": "^0.17.19",
30-
"esbuild-stylus-loader": "^0.4.2"
29+
"esbuild": "^0.25.0",
30+
"esbuild-sass-plugin": "^3.3.1"
3131
}
3232
}

demo/scripts/esbuild-config.js

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
const fs = require('fs')
2-
const { stylusLoader } = require('esbuild-stylus-loader')
2+
const { sassPlugin } = require('esbuild-sass-plugin')
33

44
const metafilePlugin = {
55
name: 'metafilePlugin',
@@ -14,16 +14,12 @@ const metafilePlugin = {
1414

1515
exports.config = {
1616
plugins: [
17-
stylusLoader({
18-
stylusOptions: {
19-
includeCss: true,
20-
},
21-
}),
17+
sassPlugin(),
2218
metafilePlugin,
2319
],
2420
entryPoints: [
2521
'./src/demo.tsx',
26-
'./src/demo.styl',
22+
'./src/demo.sass',
2723
],
2824
outdir: 'dist',
2925
metafile: true,
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
@import '../../dist/layout.css'
2-
@import '../../dist/theme.css'
3-
@import '../node_modules/uptick-demo-site/dist/index.css'
1+
@use '../../dist/layout.css'
2+
@use '../../dist/theme.css'
3+
@use '../node_modules/uptick-demo-site/dist/index.css'
44

55
hr
66
margin: 5rem 0

0 commit comments

Comments
 (0)