Skip to content
This repository has been archived by the owner on Jan 23, 2021. It is now read-only.

Remove the sourcemap comment when inlining sw-toolbox #96

Merged
merged 1 commit into from
Mar 16, 2016

Conversation

jeffposnick
Copy link
Contributor

R: @addyosmani @wibblymat @gauntface

We can't rely on users including the sw-toolbox sourcemap file at a specific location in their web server when using sw-precache to inline the sw-toolbox code. This PR removes the reference to the sourcemap file to stop errors from being logged in the JS console.

A more robust solution is tracked in #95.

Closes #93

@gauntface
Copy link

Lgtm

jeffposnick added a commit that referenced this pull request Mar 16, 2016
Remove the sourcemap comment when inlining sw-toolbox
@jeffposnick jeffposnick merged commit ac7fb54 into master Mar 16, 2016
@jeffposnick jeffposnick deleted the no-sw-toolbox-sourcemap branch March 16, 2016 17:21
@werbitzky
Copy link

this does not work with version 3.2.0, after generating the servier-worker.js by command-line, I still have the entry:

//# sourceMappingURL=./build/sw-toolbox.map.json
// *** End of auto-included sw-toolbox code. ***

@jeffposnick
Copy link
Contributor Author

That's due to GoogleChromeLabs/sw-toolbox#149 and should hopefully be resolved in an upcoming sw-toolbox patch release. CC: @gauntface

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

Successfully merging this pull request may close these issues.

None yet

3 participants