Sort define keys
This commit is contained in:
@@ -264,10 +264,10 @@ module.exports = {
|
||||
'Windows': 'readonly',
|
||||
// Build time definitions
|
||||
__JF_BUILD_VERSION__: 'readonly',
|
||||
__USE_SYSTEM_FONTS__: 'readonly',
|
||||
__WEBPACK_SERVE__: 'readonly',
|
||||
__PACKAGE_JSON_NAME__: 'readonly',
|
||||
__PACKAGE_JSON_VERSION__: 'readonly'
|
||||
__PACKAGE_JSON_VERSION__: 'readonly',
|
||||
__USE_SYSTEM_FONTS__: 'readonly',
|
||||
__WEBPACK_SERVE__: 'readonly'
|
||||
},
|
||||
rules: {
|
||||
'@typescript-eslint/prefer-string-starts-ends-with': ['error']
|
||||
|
||||
4
src/global.d.ts
vendored
4
src/global.d.ts
vendored
@@ -16,8 +16,8 @@ export declare global {
|
||||
}
|
||||
|
||||
const __JF_BUILD_VERSION__: string;
|
||||
const __USE_SYSTEM_FONTS__: string;
|
||||
const __WEBPACK_SERVE__: string;
|
||||
const __PACKAGE_JSON_NAME__: string;
|
||||
const __PACKAGE_JSON_VERSION__: string;
|
||||
const __USE_SYSTEM_FONTS__: string;
|
||||
const __WEBPACK_SERVE__: string;
|
||||
}
|
||||
|
||||
@@ -52,10 +52,10 @@ const config = {
|
||||
process.env.WEBPACK_SERVE ?
|
||||
'Dev Server' :
|
||||
process.env.JELLYFIN_VERSION || 'Release'),
|
||||
__USE_SYSTEM_FONTS__: JSON.stringify(!!process.env.USE_SYSTEM_FONTS),
|
||||
__WEBPACK_SERVE__: JSON.stringify(!!process.env.WEBPACK_SERVE),
|
||||
__PACKAGE_JSON_NAME__: JSON.stringify(packageJson.name),
|
||||
__PACKAGE_JSON_VERSION__: JSON.stringify(packageJson.version)
|
||||
__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)
|
||||
}),
|
||||
new CleanWebpackPlugin(),
|
||||
new HtmlWebpackPlugin({
|
||||
|
||||
Reference in New Issue
Block a user