Skip to content

Commit 3f39d74

Browse files
adds css update to webpack.config.js.
1 parent b1b5541 commit 3f39d74

File tree

3 files changed

+117
-6
lines changed

3 files changed

+117
-6
lines changed

package-lock.json

Lines changed: 109 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@
3535
"@testing-library/user-event": "^13.2.1",
3636
"axios": "0.21.1",
3737
"cors": "2.8.5",
38+
"css-loader": "^6.4.0",
3839
"express": "4.17.1",
3940
"jest-dom": "^4.0.0",
4041
"moment": "^2.29.1",
@@ -43,6 +44,7 @@
4344
"react": "17.0.2",
4445
"react-dom": "17.0.2",
4546
"react-router-dom": "^5.2.0",
47+
"style-loader": "^3.3.1",
4648
"styled-components": "5.3.0"
4749
}
4850
}

webpack.config.js

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
12
const path = require('path')
23
const HtmlWebpackPlugin = require('html-webpack-plugin')
34

@@ -38,7 +39,11 @@ module.exports = {
3839
'plugins': [['babel-plugin-styled-components'], ['@babel/plugin-transform-react-jsx']]
3940
}
4041
},
42+
},
43+
{
44+
test: /\.css$/i,
45+
use: ["style-loader", "css-loader"],
4146
}
4247
],
4348
},
44-
}
49+
}

0 commit comments

Comments
 (0)