We only support .module.css files right now, but we can add in SCSS support in the next version.
We only support
.module.cssfiles right now, but we can add in SCSS support in the next version.
That would be great and it would complete react css/scss module support.
Hi there,
Thanks for this feature. I tested it with the latest version of Nx (9.2.4). Everything seems to work fine but the option stylePreprocessorOptions and the includePaths attribute do not seem to be taken into account with files of this type (.module.scss).
Here is an example of the build object I am using. It is very basic.
"build": {
"builder": "@nrwl/web:build",
"options": {
"outputPath": "dist/apps/my-app",
"index": "apps/my-app/src/index.html",
"main": "apps/my-app/src/index.tsx",
"polyfills": "apps/my-app/src/polyfills.ts",
"tsConfig": "apps/my-app/tsconfig.app.json",
"assets": ["apps/my-app/src/favicon.ico", "apps/my-app/src/assets"],
"styles": ["apps/my-app/src/index.scss"],
"stylePreprocessorOptions": {
"includePaths": [
"./node_modules",
"./apps/my-app/src"
]
},
"scripts": [],
"webpackConfig": "@nrwl/react/plugins/webpack"
},
This conf works well with the other .scss files.
I think you can reopen the ticket.
Most helpful comment
We only support
.module.cssfiles right now, but we can add in SCSS support in the next version.