-
-
Notifications
You must be signed in to change notification settings - Fork 375
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
Conversation
@@ -142,7 +142,7 @@ export default function (env) { | |||
{ | |||
loader: 'postcss-loader', | |||
options: { | |||
sourceMap: isProd, | |||
sourceMap: true, |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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)-loader
s.
This can still be overridden in Userland, if wanted, but there'd be no point.
Development sourcemaps don't work with out this.
There was a problem hiding this 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, |
There was a problem hiding this comment.
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
Previous PR (#404) enabled
sourceMap
s for production builds only. Derp. This enables mapping during development.Closes #403 ... again