Skip to content

Commit 76cb8c8

Browse files
jacopenclaude
andcommitted
feat: update webpack config for sass-loader v16 compatibility
- Configure sass-loader to use modern-compiler API for better performance - Set appropriate style options for production/development environments - Ensure forward compatibility with sass-loader v16 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
1 parent bb990f9 commit 76cb8c8

File tree

2 files changed

+38
-1
lines changed

2 files changed

+38
-1
lines changed

.claude/settings.local.json

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
{
2+
"permissions": {
3+
"allow": [
4+
"WebFetch(domain:github.com)",
5+
"Bash(grep:*)",
6+
"Bash(gh pr checkout:*)",
7+
"Bash(git reset:*)",
8+
"Bash(npm install)",
9+
"Bash(npm run build:*)",
10+
"Bash(npm install:*)",
11+
"Bash(bundle exec:*)",
12+
"Bash(DOCKER_BUILDKIT=1 docker compose up db redis nginx localstack -d)",
13+
"Bash(rm:*)",
14+
"Bash(yarn install)",
15+
"Bash(yarn build)",
16+
"Bash(git push:*)",
17+
"Bash(git checkout:*)",
18+
"Bash(git pull:*)",
19+
"Bash(git stash:*)",
20+
"Bash(git add:*)",
21+
"Bash(git commit:*)"
22+
],
23+
"deny": []
24+
}
25+
}

webpack.config.js

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,19 @@ module.exports = {
7474
// ローダーを含むCSS/SASS/SCSSルールをここに追加する
7575
{
7676
test: /\.(?:sa|sc|c)ss$/i,
77-
use: [MiniCssExtractPlugin.loader, 'css-loader', 'sass-loader'],
77+
use: [
78+
MiniCssExtractPlugin.loader,
79+
'css-loader',
80+
{
81+
loader: 'sass-loader',
82+
options: {
83+
api: 'modern-compiler',
84+
sassOptions: {
85+
style: process.env.NODE_ENV === 'production' ? 'compressed' : 'expanded',
86+
},
87+
},
88+
},
89+
],
7890
},
7991
{
8092
test: /\.(png|jpe?g|gif|eot|woff2|woff|ttf|svg)$/i,

0 commit comments

Comments
 (0)