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

Lazy sourcemaps #71

Merged
merged 4 commits into from
May 9, 2015
Merged

Lazy sourcemaps #71

merged 4 commits into from
May 9, 2015

Conversation

Rich-Harris
Copy link
Contributor

See #68. This shuffles things around a bit so that sourcemaps aren't automatically generated, but are instead rendered on demand (and stored in memory until the build invalidates them). It gives a nice boost to perceived speed.

It does involve a little bit of hackiness - we have to rewrite sourceMappingURL comments in .js and .css files as they're served, and all requests for .map files are assumed by the gobble server to need to be treated in this way, rather than as requests for files on disk. But that's necessary to make the output the same as you'd get with gobble watch or gobble build.

@Rich-Harris
Copy link
Contributor Author

Merging this in so as to crack on with some of the other issues - been using it for the last couple of days and it seems to hold up

Rich-Harris added a commit that referenced this pull request May 9, 2015
@Rich-Harris Rich-Harris merged commit f9151d5 into master May 9, 2015
@Rich-Harris Rich-Harris deleted the lazy-sourcemaps branch May 9, 2015 15:01
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.

1 participant