我尝试使用FCM在我的vue应用程序中显示桌面通知
我用我的配置安装了firebase和initializeApp
所以我安装了sw-precache webpack-plugin,在dist文件夹中有service-worker.js
我也有同样的错误

sw-预缓存配置
new SWPrecacheWebpackPlugin({
cacheId: 'service-app',
filename: 'service-worker.js',
staticFileGlobs: ['dist/**/*.{js,html,css}'],
minify: false,
stripPrefix: 'dist/'
})在index.html<%= htmlWebpackPlugin.options.serviceWorkerLoader %>中
没有sw-precache precache plugin可以吃吗?
发布于 2017-11-01 17:31:59
我不得不做一个硬核
创建firebase-messaging-sw.js并移动到生产服务器中的dist文件夹
https://stackoverflow.com/questions/47049231
复制相似问题