You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Aug 31, 2021. It is now read-only.
I came to know this great tool for service worker. I've learned many thing by this tool. Thank you. :)
But I get to have question while using it.
For debugging I have used source-map that was built.
First I had a problem because of source map path in sw-toolbox.js //# sourceMappingURL=./build/sw-toolbox.map.json
But It's not big problem to me. I can be solved by remove build. //# sourceMappingURL=./sw-toolbox.map.json
But my big problem is "I could not take a break point" although its source tree appears on dev tools.
I've tried to make break point on Router.prototype.matchMethod function (router.js) but the break point is made on fastest.js(53). Some breakpoints are made well. but most of all are not made on proper code.
So I tried another way of making source map by modifying gulpfile.
Hello,
I came to know this great tool for service worker. I've learned many thing by this tool. Thank you. :)
But I get to have question while using it.
For debugging I have used source-map that was built.
First I had a problem because of source map path in sw-toolbox.js
//# sourceMappingURL=./build/sw-toolbox.map.json
But It's not big problem to me. I can be solved by remove
build
.//# sourceMappingURL=./sw-toolbox.map.json
But my big problem is "I could not take a break point" although its source tree appears on dev tools.
I've tried to make break point on
Router.prototype.matchMethod
function (router.js) but the break point is made on fastest.js(53). Some breakpoints are made well. but most of all are not made on proper code.So I tried another way of making source map by modifying gulpfile.
I referenced this
https://github.com/gulpjs/gulp/blob/master/docs/recipes/browserify-uglify-sourcemap.md
It works very well.
What was my problem? How can I use source-map by not modifying gulf file.
Thank you for your help in advance.
The text was updated successfully, but these errors were encountered: