jellyfin-web/webpack.prod.js
2021-06-15 00:44:00 -04:00

16 lines
451 B
JavaScript

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: './scripts/site.js',
plugins: [
new WorkboxPlugin.InjectManifest({
swSrc: path.resolve(__dirname, 'src/serviceworker.js'),
swDest: 'serviceworker.js'
})
]
});