Skip to content

Commit

Permalink
feat: Add SCSS support by configuring sass-loader and updating packag…
Browse files Browse the repository at this point in the history
…e dependencies
  • Loading branch information
szweibel committed Dec 18, 2024
1 parent 681e040 commit 7d1975e
Show file tree
Hide file tree
Showing 3 changed files with 249 additions and 33 deletions.
9 changes: 9 additions & 0 deletions next.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,15 @@ const nextConfig = {
test: /\.css$/,
use: ['style-loader', 'css-loader']
});
// SCSS handling
config.module.rules.push({
test: /\.scss$/,
use: [
'style-loader',
'css-loader',
'sass-loader'
]
});
return config;
}
}
Expand Down
270 changes: 237 additions & 33 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -81,9 +81,12 @@
},
"devDependencies": {
"babel-plugin-preval": "^5.0.0",
"css-loader": "^7.1.2",
"eslint": "7.29.0",
"eslint-config-next": "11.0.1",
"next-compose": "^0.0.2",
"sass-loader": "^16.0.4",
"style-loader": "^4.0.0",
"typescript": "^4.5.2"
}
}

0 comments on commit 7d1975e

Please sign in to comment.