Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/lib/webpack/webpack-base-config.js
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ export default function (env) {
{
loader: 'postcss-loader',
options: {
sourceMap: isProd,
sourceMap: true,
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can't we leave this in the user land whether to use sourceMaps in production or not?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm fine with both the options tho

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This isn't production. This just always allows PostCSS to accept source maps. Whether or not source maps are created is determined by the (css|sass|stylus|less)-loaders.

This can still be overridden in Userland, if wanted, but there'd be no point.

Development sourcemaps don't work with out this.

plugins: [autoprefixer({ browsers })]
}
}
Expand All @@ -167,7 +167,7 @@ export default function (env) {
{
loader: 'postcss-loader',
options: {
sourceMap: isProd,
sourceMap: true,
plugins: [autoprefixer({ browsers })]
}
}
Expand Down