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

Commit 1143292

Browse files
committed
Try to enable sourceMaps
1 parent e2d7c55 commit 1143292

File tree

2 files changed

+8
-23
lines changed

2 files changed

+8
-23
lines changed

postcss.config.js

Lines changed: 5 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,36 +1,21 @@
11
module.exports = context => ({
2-
map: {
3-
sourcesContent: false,
4-
inline: false
5-
},
2+
map: true,
63
plugins: {
74
'postcss-import': {
85
path: [
96
'node_modules',
107
'src/main/react', // allows importing modules using absolute path, @see https://goo.gl/luH0Xa
118
],
12-
map: {
13-
sourcesContent: false,
14-
inline: false
15-
},
9+
map: true,
1610
},
1711
'postcss-mixins': {
18-
map: {
19-
sourcesContent: false,
20-
inline: false
21-
},
12+
map: true,
2213
},
2314
'postcss-each': {
24-
map: {
25-
sourcesContent: false,
26-
inline: false
27-
},
15+
map: true,
2816
},
2917
'postcss-cssnext': {
30-
map: {
31-
sourcesContent: false,
32-
inline: false
33-
},
18+
map: true,
3419
features: {
3520
customProperties: {
3621
variables: {

webpack.config.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -68,22 +68,22 @@ const settings = {
6868
{
6969
loader: 'style-loader',
7070
options: {
71-
sourceMap: false
71+
sourceMap: true
7272
}
7373
},
7474
{
7575
loader: 'css-loader',
7676
options: {
7777
modules: true,
78-
sourceMap: false,
78+
sourceMap: true,
7979
importLoaders: 1,
8080
localIdentName: dev('[name]--[local]--[hash:base64:5]').prod('[hash:base64]')
8181
}
8282
},
8383
{
8484
loader: 'postcss-loader',
8585
options: {
86-
sourceMap: false
86+
sourceMap: true
8787
}
8888
} // has separate PostCSS config nearby
8989
]

0 commit comments

Comments
 (0)