Skip to content

Commit afa8e39

Browse files
committed
fix(postcss): add sourcemap to postcss-loader
This possibly solves the styling issue.
1 parent 9095bcf commit afa8e39

1 file changed

Lines changed: 10 additions & 1 deletion

File tree

packages/scripts/src/config/WebpackConfigHelper.ts

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -350,6 +350,10 @@ ${bannerConfig.copyrightText}${bannerConfig.credit ? creditNote : ''}`,
350350
return plugins;
351351
}
352352

353+
public isBabelConfigPresent(): boolean {
354+
return this.fileExists(path.resolve(this.cwd, 'babel.config.js'));
355+
}
356+
353357
/**
354358
* Get module object for webpack, depending on environment.
355359
*/
@@ -450,7 +454,12 @@ ${bannerConfig.copyrightText}${bannerConfig.credit ? creditNote : ''}`,
450454
sourceMap: true,
451455
},
452456
},
453-
'postcss-loader',
457+
{
458+
loader: 'postcss-loader',
459+
options: {
460+
sourceMap: true,
461+
},
462+
},
454463
],
455464
};
456465
// If we have sass, then add the stuff

0 commit comments

Comments
 (0)