2021-06-03 10:14:28 -04:00
|
|
|
const path = require('path');
|
2020-05-04 12:44:12 +02:00
|
|
|
const common = require('./webpack.common');
|
2021-06-15 00:44:00 -04:00
|
|
|
const { merge } = require('webpack-merge');
|
2021-06-03 10:14:28 -04:00
|
|
|
const WorkboxPlugin = require('workbox-webpack-plugin');
|
2019-09-30 23:51:46 +03:00
|
|
|
|
|
|
|
module.exports = merge(common, {
|
2020-05-04 12:44:12 +02:00
|
|
|
mode: 'production',
|
2022-09-29 12:50:25 -04:00
|
|
|
entry: { 'main.jellyfin': './index.jsx' },
|
2021-06-03 10:14:28 -04:00
|
|
|
plugins: [
|
|
|
|
new WorkboxPlugin.InjectManifest({
|
|
|
|
swSrc: path.resolve(__dirname, 'src/serviceworker.js'),
|
|
|
|
swDest: 'serviceworker.js'
|
|
|
|
})
|
|
|
|
]
|
2019-09-30 23:51:46 +03:00
|
|
|
});
|