Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow PostCSS to sourceMap in Dev mode #407

Merged
merged 1 commit into from
Oct 20, 2017
Merged

Allow PostCSS to sourceMap in Dev mode #407

merged 1 commit into from
Oct 20, 2017

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

@@ -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.

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!

@@ -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.

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.

2 participants