Skip to content

Improve source map support #2

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

Merged
merged 1 commit into from
Dec 24, 2014
Merged

Improve source map support #2

merged 1 commit into from
Dec 24, 2014

Conversation

vanwagonet
Copy link
Contributor

  • Populate the from, to, map, and compress options from webpack info
  • Pass on generated source map

options.from = loaderUtils.getRemainingRequest(context)
options.to = loaderUtils.getRemainingRequest(context)
if (context.sourceMap) {
options.map = { inline:false, annotation:false, prev:map }
Copy link
Contributor

Choose a reason for hiding this comment

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

can you use a multiline syntax instead?

@bloodyowl
Copy link
Contributor

really nice, thanks 👍

can you just fix the little syntax issue?

- Populate the from, to, map, and compress options from webpack info
- Pass on generated source map
@vanwagonet
Copy link
Contributor Author

Is that the preferred style?

bloodyowl added a commit that referenced this pull request Dec 24, 2014
@bloodyowl bloodyowl merged commit f6200e7 into MoOx:master Dec 24, 2014
@bloodyowl
Copy link
Contributor

yes, mainly for diff showing reasons.
thanks again for your PR

@vanwagonet
Copy link
Contributor Author

Glad I could help.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants