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');
|
2019-09-30 23:51:46 +03:00
|
|
|
|
2025-03-25 12:21:57 -04:00
|
|
|
const THEMES = [
|
|
|
|
'appletv',
|
|
|
|
'blueradiance',
|
|
|
|
'dark',
|
|
|
|
'light',
|
|
|
|
'purplehaze',
|
|
|
|
'wmc'
|
|
|
|
];
|
|
|
|
|
2019-09-30 23:51:46 +03:00
|
|
|
module.exports = merge(common, {
|
2020-05-04 12:44:12 +02:00
|
|
|
mode: 'production',
|
2023-10-20 12:03:09 -04:00
|
|
|
entry: {
|
|
|
|
'main.jellyfin': './index.jsx',
|
2025-03-25 12:21:57 -04:00
|
|
|
'serviceworker': './serviceworker.js',
|
|
|
|
...THEMES.reduce((acc, theme) => {
|
|
|
|
acc[`themes/${theme}`] = `./themes/${theme}/theme.scss`;
|
|
|
|
return acc;
|
|
|
|
}, {})
|
2023-10-20 12:03:09 -04:00
|
|
|
}
|
2019-09-30 23:51:46 +03:00
|
|
|
});
|