Remove resource caching from service worker

This commit is contained in:
Niels van Velzen 2023-10-16 16:14:09 +02:00
parent 4882d9c8cc
commit f7f546f15f
4 changed files with 5 additions and 1514 deletions

View file

@ -1,15 +1,7 @@
const path = require('path');
const common = require('./webpack.common');
const { merge } = require('webpack-merge');
const WorkboxPlugin = require('workbox-webpack-plugin');
module.exports = merge(common, {
mode: 'production',
entry: { 'main.jellyfin': './index.jsx' },
plugins: [
new WorkboxPlugin.InjectManifest({
swSrc: path.resolve(__dirname, 'src/serviceworker.js'),
swDest: 'serviceworker.js'
})
]
entry: { 'main.jellyfin': './index.jsx' }
});