Skip to content

Commit 787bfb5

Browse files
committed
feat(react-md): Simplify sass usage with: @use 'react-md';
With latest `sass-loader` and `sass`, code can be updated to: ```diff -@import 'react-md/dist/mixins'; +@use 'react-md' as *; @include react-md-utils; ``` Note: If you override variables, do: ```diff -@import 'react-md/dist/mixins'; +@use 'react-md' as * with ( + // all $rmd-* variable overrides +); @include react-md-utils; ```
1 parent 2d0a0e6 commit 787bfb5

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

packages/react-md/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
"module": "./es/index.js",
77
"unpkg": "./dist/umd/react-md.production.min.js",
88
"types": "./types/index.d.ts",
9+
"sass": "./dist/_everything.scss",
910
"sideEffects": [
1011
"dist/**/*"
1112
],

0 commit comments

Comments
 (0)