-
-
Notifications
You must be signed in to change notification settings - Fork 2.3k
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
CSS/SASS/LESS sourcemaps #2489
CSS/SASS/LESS sourcemaps #2489
Conversation
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.
really cool to see working sourcemaps for css!
This comment has been minimized.
This comment has been minimized.
Awesome work, really excited about this! 🎉 Will take a look soon. |
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.
Looks good, left some comments about a couple lines of code that are identical to JS or obsolete and should probably be put into a seperate util or removed
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
Ready for review 🚀 |
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 looks amazing! Really nice work. 👏🔥🎉
Just one comment to fix and we can get this in.
@@ -219,6 +219,19 @@ class Asset { | |||
} | |||
|
|||
async postProcess(generated) { | |||
let hasMap = false; |
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 we move this code to a separate method, or into the Pipeline class? If we add it here, you'll need to ensure to call super.postProcess
from all assets that implement a postProcess
method, as you've done for a couple already. That would be a potentially breaking change for plugins, so if we can move this outside that would be better.
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.
Done!
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.
Except for the comment by Devon about the breaking change this looks good
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.
↪️ Pull Request
Proper (non inline) sourcemaps for PostCSS. Example
Closes #1824 Closes #903 Closes #2194 Closes #2692
💻 Examples
Anytime parcel minifies a css file
✔️ PR Todo
loadSourceMap
function--no-sourcemaps
work)app.js
->app.js.map
orapp.map