jellyfin-web/webpack.prod.js

16 lines
466 B
JavaScript
Raw Normal View History

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