mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
Add package.json name and version as defines to avoid importing the package.json in code
This commit is contained in:
parent
a34fbadaab
commit
facbda4f2f
6 changed files with 13 additions and 10 deletions
|
@ -265,7 +265,9 @@ module.exports = {
|
|||
// Build time definitions
|
||||
__JF_BUILD_VERSION__: 'readonly',
|
||||
__USE_SYSTEM_FONTS__: 'readonly',
|
||||
__WEBPACK_SERVE__: 'readonly'
|
||||
__WEBPACK_SERVE__: 'readonly',
|
||||
__PACKAGE_JSON_NAME__: 'readonly',
|
||||
__PACKAGE_JSON_VERSION__: 'readonly'
|
||||
},
|
||||
rules: {
|
||||
'@typescript-eslint/prefer-string-starts-ends-with': ['error']
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue