1
0
Fork 0
mirror of https://github.com/jellyfin/jellyfin-web synced 2025-03-30 19:56:21 +00:00

fixed serviceworker with workbox

This commit is contained in:
vitorsemeano 2020-11-09 19:20:55 +00:00
parent 2a238d79f9
commit 2c2cf76a0e
6 changed files with 503 additions and 61 deletions

View file

@ -2,6 +2,7 @@ const path = require('path');
const { CleanWebpackPlugin } = require('clean-webpack-plugin');
const CopyPlugin = require('copy-webpack-plugin');
const packageConfig = require('./package.json');
const WorkboxPlugin = require('workbox-webpack-plugin');
module.exports = {
context: path.resolve(__dirname, 'src'),
@ -32,6 +33,10 @@ module.exports = {
}
}
]
}),
new WorkboxPlugin.InjectManifest({
swSrc: path.resolve(__dirname, 'src/serviceworker.js'),
swDest: 'serviceworker.js'
})
],
output: {