Skip to content
This repository was archived by the owner on Jan 20, 2022. It is now read-only.

Commit 84b64a4

Browse files
committed
Add sourceMaps to style-loader
1 parent 74f3f33 commit 84b64a4

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

webpack.config.js

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,12 @@ const settings = {
6565
{
6666
test: /\.css$/,
6767
use: [
68-
'style-loader',
68+
{
69+
loader: 'style-loader',
70+
options: {
71+
sourceMap: true
72+
}
73+
},
6974
{
7075
loader: 'css-loader',
7176
options: {
@@ -78,9 +83,9 @@ const settings = {
7883
{
7984
loader: 'postcss-loader',
8085
options: {
81-
sourceMap: false
86+
sourceMap: true
8287
}
83-
} // has separate config nearby
88+
} // has separate PostCSS config nearby
8489
]
8590
},
8691
]

0 commit comments

Comments
 (0)