Skip to content

Commit 9b66d27

Browse files
committed
Fix naming CSS modules in S2
1 parent 0ad8215 commit 9b66d27

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

packages/dev/parcel-namer-s2/S2Namer.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ module.exports = new Namer({
3939
name = name[0].toUpperCase() + name.slice(1).replace(/_/g, '');
4040
return 'gradient/' + style + '/' + name;
4141
})
42+
.replace(/\.module$/, '_module')
4243
+ ext;
4344
}
4445
}

0 commit comments

Comments
 (0)