- Added some configurations to fix sass 3.0 deprecations
https://stackoverflow.com/questions/78997907/the-legacy-js-api-is-deprecated-and-will-be-removed-in-dart-sass-2-0-0
css: {
preprocessorOptions: {
sass: {
api: 'modern',
silenceDeprecations: ["legacy-js-api"],
}
}
},
- Updated all src/components/sass files. Replaces import "x" as use "x"
- Added namespace to sass files like below
@import "./variables" as v;
p code {
background: rgba(v.$color-black, 0.1);
color: rgba(v.$color-black, 0.8);
}
- Added sass loader "sass-loader": "^16.0.2", to package.json