serviceworker-webpack-plugin icon indicating copy to clipboard operation
serviceworker-webpack-plugin copied to clipboard

Asset list should include source maps

Open rezonant opened this issue 8 years ago • 1 comments

Looks like the asset list provided by this plugin doesn't include generated source maps. I also noticed the manifest generated by https://github.com/arthurbergmz/webpack-pwa-manifest does not get included.

rezonant avatar Sep 07 '17 19:09 rezonant

You can probably include sourceMaps by adding a transformOptions function, that defines what data ends up in your ServiceWorker code. But only if you promise you won't cache sourcemap files in a production build ;-)

Tbh, I'm not sure if it's good practice to cache the manifest - but it shouldn't be impossible. If the problem still exists, could you provide a minimal repo to reproduce the problem?

woutervanvliet avatar Mar 15 '18 11:03 woutervanvliet