Skip to content

Commit af8b686

Browse files
committed
Update webpack.config.js
1 parent 0ff8fb7 commit af8b686

1 file changed

Lines changed: 26 additions & 25 deletions

File tree

webpack.config.js

Lines changed: 26 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -21,34 +21,35 @@ module.exports = {
2121
],
2222
module: {
2323
rules: [
24-
{
25-
test: /\.(scss)$/,
26-
use: [
2724
{
28-
// Adds CSS to the DOM by injecting a `<style>` tag
29-
loader: "style-loader"
30-
},
31-
{
32-
// Interprets `@import` and `url()` like `import/require()` and will resolve them
33-
loader: "css-loader"
34-
},
35-
{
36-
// Loader for webpack to process CSS with PostCSS
37-
loader: "postcss-loader",
38-
options: {
39-
postcssOptions: {
40-
plugins: [
41-
autoprefixer
42-
]
25+
test: /\.(scss)$/,
26+
use: [
27+
{
28+
// Adds CSS to the DOM by injecting a `<style>` tag
29+
loader: "style-loader"
30+
},
31+
{
32+
// Interprets `@import` and `url()` like `import/require()`
33+
// // and will resolve them
34+
loader: "css-loader"
35+
},
36+
{
37+
// Loader for webpack to process CSS with PostCSS
38+
loader: "postcss-loader",
39+
options: {
40+
postcssOptions: {
41+
plugins: [
42+
autoprefixer
43+
]
44+
}
45+
}
46+
},
47+
{
48+
// Loads a SASS/SCSS file and compiles it to CSS
49+
loader: "sass-loader"
4350
}
44-
}
45-
},
46-
{
47-
// Loads a SASS/SCSS file and compiles it to CSS
48-
loader: "sass-loader"
51+
]
4952
}
50-
]
51-
}
5253
]
5354
}
5455
}

0 commit comments

Comments
 (0)