Skip to content

Commit a680690

Browse files
committed
Chore(web): Set sass as optional peer dependency
refs #DS-1162
1 parent 51da754 commit a680690

File tree

2 files changed

+8
-3
lines changed

2 files changed

+8
-3
lines changed

packages/web/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,8 @@ in your HTML template:
3333

3434
### Advanced Implementation in Product with Sass
3535

36-
**Important:** Make sure you have
37-
[configured Sass load path][configuring-load-path] for `@tokens` and
36+
**Important:** Make sure you have `sass` dependency installed in your project (`sass` is marked as optional peer dependency since you can use the pre-built distribution CSS).
37+
And also [configure Sass load path][configuring-load-path] for `@tokens` and
3838
`node_modules` so all dependencies are resolved correctly by Sass.
3939

4040
Having the Sass load path configured, import just the components you need in

packages/web/package.json

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,12 @@
8989
"vite-plugin-handlebars": "1.6.0"
9090
},
9191
"peerDependencies": {
92-
"sass": ">=1.57.0"
92+
"sass": ">=1.57.0 < 2"
93+
},
94+
"peerDependenciesMeta": {
95+
"sass": {
96+
"optional": true
97+
}
9398
},
9499
"nx": {
95100
"targets": {

0 commit comments

Comments
 (0)