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
Usually self host StreamSaver means manually (or use copy-webpack-plugin) copy mitm.html and sw.js to public folder and set up StreamSaver.mitm = '/static/mitm.html'.
But with Webpack 5 and URL Assets, one can do something like
And Webpack will automatically copy mitm.html and sw.js to public folder. One bonus point is that these files now have names with hashes so they can be cached forever.
However, the sw.js path is hardcoded so the above code doesn't really work.
Usually self host StreamSaver means manually (or use copy-webpack-plugin) copy
mitm.html
andsw.js
to public folder and set upStreamSaver.mitm = '/static/mitm.html'
.But with Webpack 5 and URL Assets, one can do something like
And Webpack will automatically copy
mitm.html
andsw.js
to public folder. One bonus point is that these files now have names with hashes so they can be cached forever.However, the
sw.js
path is hardcoded so the above code doesn't really work.StreamSaver.js/mitm.html
Line 41 in cd8e32a
I have tested locally that some thing like this is possible (although
URLSearchParams
may have compatibility issue)The text was updated successfully, but these errors were encountered: