Skip to content

Commit ef7ebb6

Browse files
committed
Add modifications for gh-page build
1 parent 179dca1 commit ef7ebb6

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

src/utils/helper.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
11
import { AppInputThemeSlider } from '@/models/app'
2-
import { appWindow, Lightdm } from '@/models/lightdm'
2+
import { appWindow } from '@/models/lightdm'
33
import { AppModule } from '@/store/app'
44
import { PageModule } from '@/store/page'
55
import { debounce, DebounceSettings } from 'lodash'
66

7-
export const modKey = 'fn'
7+
const isFinalBuild = process.env.VUE_APP_VIEW === 'build'
8+
export const modKey = 'ctrl'
89
export const languageMap: Record<string, string> = {
910
ru: 'Русский',
1011
en: 'English',

vue.config.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
1+
const isGithubView = process.env.VUE_APP_VIEW === 'github'
12
module.exports = {
2-
publicPath: '',
3+
publicPath: isGithubView ? '/lightdm-webkit-theme-osmos/' : '',
34
runtimeCompiler: true,
45
transpileDependencies: ['vuex-module-decorators'],
56

0 commit comments

Comments
 (0)