mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
23 lines
516 B
JavaScript
23 lines
516 B
JavaScript
const common = require('./webpack.common');
|
|
const { merge } = require('webpack-merge');
|
|
|
|
const THEMES = [
|
|
'appletv',
|
|
'blueradiance',
|
|
'dark',
|
|
'light',
|
|
'purplehaze',
|
|
'wmc'
|
|
];
|
|
|
|
module.exports = merge(common, {
|
|
mode: 'production',
|
|
entry: {
|
|
'main.jellyfin': './index.jsx',
|
|
'serviceworker': './serviceworker.js',
|
|
...THEMES.reduce((acc, theme) => {
|
|
acc[`themes/${theme}`] = `./themes/${theme}/theme.scss`;
|
|
return acc;
|
|
}, {})
|
|
}
|
|
});
|