Skip to content

Commit 0b34033

Browse files
committed
Add strict-css-modules-loader
1 parent 3e03f6c commit 0b34033

File tree

3 files changed

+12
-0
lines changed

3 files changed

+12
-0
lines changed

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@
2525
"devDependencies": {
2626
"@babel/core": "^7.4.0",
2727
"@babel/preset-env": "^7.4.0",
28+
"@teamthread/strict-css-modules-loader": "^0.0.3",
2829
"@types/jest": "^24.0.11",
2930
"@types/prop-types": "^15.7.0",
3031
"@types/react-fontawesome": "^1.6.4",

webpack.config.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,9 @@ module.exports = {
5454
{
5555
test: /\.css$/,
5656
use: [
57+
{
58+
loader: "@teamthread/strict-css-modules-loader"
59+
},
5760
{
5861
loader: "style-loader"
5962
},
@@ -74,6 +77,9 @@ module.exports = {
7477
{
7578
test: /\.scss$/,
7679
use: [
80+
{
81+
loader: "@teamthread/strict-css-modules-loader"
82+
},
7783
{
7884
loader: "style-loader"
7985
},

yarn.lock

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1459,6 +1459,11 @@
14591459
resolved "https://registry.yarnpkg.com/@nodelib/fs.stat/-/fs.stat-1.1.3.tgz#2b5a3ab3f918cca48a8c754c08168e3f03eba61b"
14601460
integrity sha512-shAmDyaQC4H92APFoIaVDHCx5bStIocgvbwQyxPRrbUY20V1EYTbSDchWbuwlMG3V17cprZhA6+78JfB+3DTPw==
14611461

1462+
"@teamthread/strict-css-modules-loader@^0.0.3":
1463+
version "0.0.3"
1464+
resolved "https://registry.yarnpkg.com/@teamthread/strict-css-modules-loader/-/strict-css-modules-loader-0.0.3.tgz#5ab96e505eaf7c75c02bad7610185cce5b88128a"
1465+
integrity sha512-BW5+uJZsf48suf31qYlfQyIlp6JMD5mHEKyUy7NI7+SXcGSD140+JOe2PvHInKNw8gsY6kevxFgo/P+6nLZq6A==
1466+
14621467
"@types/babel__core@^7.1.0":
14631468
version "7.1.0"
14641469
resolved "https://registry.yarnpkg.com/@types/babel__core/-/babel__core-7.1.0.tgz#710f2487dda4dcfd010ca6abb2b4dc7394365c51"

0 commit comments

Comments
 (0)