mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
Update webpack config to build sass themes
This commit is contained in:
parent
1161cefe88
commit
a768ca3037
3 changed files with 76 additions and 36 deletions
|
@ -1,10 +1,23 @@
|
|||
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'
|
||||
'serviceworker': './serviceworker.js',
|
||||
...THEMES.reduce((acc, theme) => {
|
||||
acc[`themes/${theme}`] = `./themes/${theme}/theme.scss`;
|
||||
return acc;
|
||||
}, {})
|
||||
}
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue