From ef7ebb6d22dae80558a7843d43f7c3e21d73a4d7 Mon Sep 17 00:00:00 2001 From: Warinyourself Date: Mon, 21 Feb 2022 11:16:52 +0300 Subject: [PATCH] Add modifications for gh-page build --- src/utils/helper.ts | 5 +++-- vue.config.js | 3 ++- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/src/utils/helper.ts b/src/utils/helper.ts index 32da530..77f2390 100644 --- a/src/utils/helper.ts +++ b/src/utils/helper.ts @@ -1,10 +1,11 @@ import { AppInputThemeSlider } from '@/models/app' -import { appWindow, Lightdm } from '@/models/lightdm' +import { appWindow } from '@/models/lightdm' import { AppModule } from '@/store/app' import { PageModule } from '@/store/page' import { debounce, DebounceSettings } from 'lodash' -export const modKey = 'fn' +const isFinalBuild = process.env.VUE_APP_VIEW === 'build' +export const modKey = 'ctrl' export const languageMap: Record = { ru: 'Русский', en: 'English', diff --git a/vue.config.js b/vue.config.js index 518dc6d..d5978a0 100644 --- a/vue.config.js +++ b/vue.config.js @@ -1,5 +1,6 @@ +const isGithubView = process.env.VUE_APP_VIEW === 'github' module.exports = { - publicPath: '', + publicPath: isGithubView ? '/lightdm-webkit-theme-osmos/' : '', runtimeCompiler: true, transpileDependencies: ['vuex-module-decorators'],