为什么默认情况下workbox-webpack-plugin排除名为manifest * .js(on)的文件?

时间:2018-08-31 09:51:01

标签: webpack workbox workbox-webpack-plugin

是否有理由将[/\.map$/, /^manifest.*\.js(?:on)?$/]exclude插件的GenerateSW选项的默认值设为InjectManifest

1 个答案:

答案 0 :(得分:1)

原因在这里描述:https://github.com/GoogleChrome/workbox/issues/1665

工作箱4 默认包括let items = [ ['Friend'], ['Friendship-'], ['Friends'], ['friendly'], ['friendster'] ]; items = items.filter(x => x[0] === "Friend"); console.log(items);