1
0
Fork 0
mirror of https://github.com/jellyfin/jellyfin-web synced 2025-03-30 19:56:21 +00:00

Convert defines to boolean

Fixes disabling features as `USE_SYSTEM_FONTS=0`.
This commit is contained in:
Dmitry Lyzo 2024-08-15 20:36:41 +03:00
parent aff5d941ef
commit 2d8d23d646
2 changed files with 4 additions and 4 deletions

View file

@ -63,8 +63,8 @@ const config = {
process.env.JELLYFIN_VERSION || 'Release'),
__PACKAGE_JSON_NAME__: JSON.stringify(packageJson.name),
__PACKAGE_JSON_VERSION__: JSON.stringify(packageJson.version),
__USE_SYSTEM_FONTS__: JSON.stringify(!!process.env.USE_SYSTEM_FONTS),
__WEBPACK_SERVE__: JSON.stringify(!!process.env.WEBPACK_SERVE)
__USE_SYSTEM_FONTS__: !!JSON.parse(process.env.USE_SYSTEM_FONTS || '0'),
__WEBPACK_SERVE__: !!JSON.parse(process.env.WEBPACK_SERVE || '0')
}),
new CleanWebpackPlugin(),
new HtmlWebpackPlugin({