Skip to content

Conversation

@lukeed
Copy link
Member

@lukeed lukeed commented Oct 17, 2017

Previous PR (#404) enabled sourceMaps for production builds only. Derp. This enables mapping during development.

Closes #403 ... again

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.

Copy link
Member

@reznord reznord left a comment

Choose a reason for hiding this comment

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

👍 LGTM!

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.

I'm fine with both the options tho

@reznord reznord merged commit 6f2da0b into master Oct 20, 2017
@lukeed lukeed deleted the fix-postcss-again branch October 20, 2017 15:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants