Skip to content

Commit af224a9

Browse files
author
Orjiewuru Kingdom
committed
fix minor bug in webpack config
1 parent e61289c commit af224a9

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

webpack.config.js

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ const htmlPlugin = new HtmlWebPackPlugin({
66
});
77

88
module.exports = {
9-
entry: "./src/app.js",
9+
entry: "./src/index.js",
1010
module: {
1111
rules: [
1212
{
@@ -18,9 +18,6 @@ module.exports = {
1818
},
1919
{
2020
test: /\.scss$/,
21-
include: [
22-
path.resolve(__dirname, "styles")
23-
],
2421
use: ["style-loader", "css-loader", "sass-loader"]
2522
},
2623
{
@@ -38,7 +35,7 @@ module.exports = {
3835
]
3936
},
4037
resolve: {
41-
extensions: ["scss"]
38+
extensions: [".scss", ".js"]
4239
},
4340
plugins: [htmlPlugin]
4441
};

0 commit comments

Comments
 (0)