Skip to content

Commit

Permalink
fix(postcss): add sourcemap to postcss-loader
Browse files Browse the repository at this point in the history
This possibly solves the styling issue.
  • Loading branch information
swashata committed Apr 14, 2019
1 parent 9095bcf commit afa8e39
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion packages/scripts/src/config/WebpackConfigHelper.ts
Original file line number Diff line number Diff line change
Expand Up @@ -350,6 +350,10 @@ ${bannerConfig.copyrightText}${bannerConfig.credit ? creditNote : ''}`,
return plugins;
}

public isBabelConfigPresent(): boolean {
return this.fileExists(path.resolve(this.cwd, 'babel.config.js'));
}

/**
* Get module object for webpack, depending on environment.
*/
Expand Down Expand Up @@ -450,7 +454,12 @@ ${bannerConfig.copyrightText}${bannerConfig.credit ? creditNote : ''}`,
sourceMap: true,
},
},
'postcss-loader',
{
loader: 'postcss-loader',
options: {
sourceMap: true,
},
},
],
};
// If we have sass, then add the stuff
Expand Down

0 comments on commit afa8e39

Please sign in to comment.