mirror of
https://github.com/viarotel-org/escrcpy.git
synced 2025-01-19 01:24:12 +01:00
perf: 🐛 Global search error
This commit is contained in:
parent
8587977627
commit
091d5035dd
@ -2,7 +2,7 @@
|
|||||||
<div class="flex flex-col absolute inset-0 h-full overflow-hidden">
|
<div class="flex flex-col absolute inset-0 h-full overflow-hidden">
|
||||||
<div class="py-4 px-4 flex items-center flex-none">
|
<div class="py-4 px-4 flex items-center flex-none">
|
||||||
<a class="block" :href="escrcpyURL" target="_blank">
|
<a class="block" :href="escrcpyURL" target="_blank">
|
||||||
<img src="#electron/resources/build/logo.png" class="h-9" alt="" />
|
<img src="$electron/resources/build/logo.png" class="h-9" alt="" />
|
||||||
</a>
|
</a>
|
||||||
<div class="pl-2 text-sm">
|
<div class="pl-2 text-sm">
|
||||||
Escrcpy Copilot
|
Escrcpy Copilot
|
||||||
|
@ -25,10 +25,10 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import logoURL from '#electron/resources/build/logo.png'
|
import logoURL from '$electron/resources/build/logo.png'
|
||||||
import userURL from '#/assets/user.png'
|
import userURL from '$/assets/user.png'
|
||||||
import mobileURL from '#/assets/mobile.png'
|
import mobileURL from '$/assets/mobile.png'
|
||||||
import computerURL from '#/assets/computer.png'
|
import computerURL from '$/assets/computer.png'
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
props: {
|
props: {
|
||||||
|
@ -2,14 +2,14 @@ import { createApp, toRaw } from 'vue'
|
|||||||
import App from './App.vue'
|
import App from './App.vue'
|
||||||
import { mockAPI } from './utils/index.js'
|
import { mockAPI } from './utils/index.js'
|
||||||
import ws from './utils/ws.js'
|
import ws from './utils/ws.js'
|
||||||
import { i18n, t } from '#/locales/index.js'
|
import { i18n, t } from '$/locales/index.js'
|
||||||
import plugins from '#/plugins/index.js'
|
import plugins from '$/plugins/index.js'
|
||||||
import icons from '#/icons/index.js'
|
import icons from '$/icons/index.js'
|
||||||
|
|
||||||
import { replaceIP, restoreIP } from '#/utils/index.js'
|
import { replaceIP, restoreIP } from '$/utils/index.js'
|
||||||
|
|
||||||
import 'virtual:uno.css'
|
import 'virtual:uno.css'
|
||||||
import '#/styles/index.js'
|
import '$/styles/index.js'
|
||||||
|
|
||||||
const app = createApp(App)
|
const app = createApp(App)
|
||||||
|
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
import { extraResolve } from '#electron/helpers/index.js'
|
import { extraResolve } from '$electron/helpers/index.js'
|
||||||
|
|
||||||
export const getAdbPath = () => {
|
export const getAdbPath = () => {
|
||||||
switch (process.platform) {
|
switch (process.platform) {
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
import which from 'which'
|
import which from 'which'
|
||||||
import { extraResolve } from '#electron/helpers/index.js'
|
import { extraResolve } from '$electron/helpers/index.js'
|
||||||
|
|
||||||
export const getGnirehtetPath = () => {
|
export const getGnirehtetPath = () => {
|
||||||
switch (process.platform) {
|
switch (process.platform) {
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
import { resolve } from 'node:path'
|
import { resolve } from 'node:path'
|
||||||
|
|
||||||
import { buildResolve, extraResolve } from '#electron/helpers/index.js'
|
import { buildResolve, extraResolve } from '$electron/helpers/index.js'
|
||||||
|
|
||||||
export { adbPath } from './android-platform-tools/index.js'
|
export { adbPath } from './android-platform-tools/index.js'
|
||||||
|
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
import which from 'which'
|
import which from 'which'
|
||||||
import { extraResolve } from '#electron/helpers/index.js'
|
import { extraResolve } from '$electron/helpers/index.js'
|
||||||
|
|
||||||
export const getScrcpyPath = () => {
|
export const getScrcpyPath = () => {
|
||||||
switch (process.platform) {
|
switch (process.platform) {
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
import { Menu, Tray, app, dialog } from 'electron'
|
import { Menu, Tray, app, dialog } from 'electron'
|
||||||
import { trayPath } from '#electron/configs/index.js'
|
import { trayPath } from '$electron/configs/index.js'
|
||||||
import appStore from '#electron/helpers/store.js'
|
import appStore from '$electron/helpers/store.js'
|
||||||
import { executeI18n } from '#electron/helpers/index.js'
|
import { executeI18n } from '$electron/helpers/index.js'
|
||||||
|
|
||||||
export default (mainWindow) => {
|
export default (mainWindow) => {
|
||||||
const t = value => executeI18n(mainWindow, value)
|
const t = value => executeI18n(mainWindow, value)
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
import { app, ipcMain } from 'electron'
|
import { app, ipcMain } from 'electron'
|
||||||
import { is } from '@electron-toolkit/utils'
|
import { is } from '@electron-toolkit/utils'
|
||||||
import electronUpdater from 'electron-updater'
|
import electronUpdater from 'electron-updater'
|
||||||
import { devPublishPath } from '#electron/configs/index.js'
|
import { devPublishPath } from '$electron/configs/index.js'
|
||||||
|
|
||||||
const { autoUpdater } = electronUpdater
|
const { autoUpdater } = electronUpdater
|
||||||
|
|
||||||
|
@ -5,8 +5,8 @@ import fs from 'node:fs'
|
|||||||
import dayjs from 'dayjs'
|
import dayjs from 'dayjs'
|
||||||
import { Adb } from '@devicefarmer/adbkit'
|
import { Adb } from '@devicefarmer/adbkit'
|
||||||
import { uniq } from 'lodash-es'
|
import { uniq } from 'lodash-es'
|
||||||
import appStore from '#electron/helpers/store.js'
|
import appStore from '$electron/helpers/store.js'
|
||||||
import { adbPath } from '#electron/configs/index.js'
|
import { adbPath } from '$electron/configs/index.js'
|
||||||
|
|
||||||
const exec = util.promisify(_exec)
|
const exec = util.promisify(_exec)
|
||||||
|
|
||||||
|
@ -1,10 +1,10 @@
|
|||||||
import { spawn } from 'node:child_process'
|
import { spawn } from 'node:child_process'
|
||||||
import appStore from '#electron/helpers/store.js'
|
import appStore from '$electron/helpers/store.js'
|
||||||
import {
|
import {
|
||||||
adbPath,
|
adbPath,
|
||||||
gnirehtetApkPath,
|
gnirehtetApkPath,
|
||||||
gnirehtetPath,
|
gnirehtetPath,
|
||||||
} from '#electron/configs/index.js'
|
} from '$electron/configs/index.js'
|
||||||
|
|
||||||
const appDebug = appStore.get('common.debug') || false
|
const appDebug = appStore.get('common.debug') || false
|
||||||
|
|
||||||
|
@ -1,14 +1,14 @@
|
|||||||
import path from 'node:path'
|
import path from 'node:path'
|
||||||
|
|
||||||
import '#electron/helpers/console.js'
|
import '$electron/helpers/console.js'
|
||||||
import electron from './electron/index.js'
|
import electron from './electron/index.js'
|
||||||
import adbkit from './adbkit/index.js'
|
import adbkit from './adbkit/index.js'
|
||||||
import scrcpy from './scrcpy/index.js'
|
import scrcpy from './scrcpy/index.js'
|
||||||
import gnirehtet from './gnirehtet/index.js'
|
import gnirehtet from './gnirehtet/index.js'
|
||||||
import search from './search/index.js'
|
import search from './search/index.js'
|
||||||
import * as configs from '#electron/configs/index.js'
|
import * as configs from '$electron/configs/index.js'
|
||||||
import store from '#electron/helpers/store.js'
|
import store from '$electron/helpers/store.js'
|
||||||
import appLog from '#electron/helpers/log.js'
|
import appLog from '$electron/helpers/log.js'
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
init(expose) {
|
init(expose) {
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
import log from 'electron-log/main.js'
|
import log from 'electron-log/main.js'
|
||||||
import { createProxy } from '#electron/helpers/index'
|
import { createProxy } from '$electron/helpers/index'
|
||||||
|
|
||||||
const levels = Object.keys(log.functions)
|
const levels = Object.keys(log.functions)
|
||||||
|
|
||||||
|
@ -1,8 +1,8 @@
|
|||||||
import util from 'node:util'
|
import util from 'node:util'
|
||||||
import { exec as _exec, spawn } from 'node:child_process'
|
import { exec as _exec, spawn } from 'node:child_process'
|
||||||
import { replaceIP, sleep } from '#renderer/utils/index.js'
|
import { replaceIP, sleep } from '$renderer/utils/index.js'
|
||||||
import appStore from '#electron/helpers/store.js'
|
import appStore from '$electron/helpers/store.js'
|
||||||
import { adbPath, scrcpyPath } from '#electron/configs/index.js'
|
import { adbPath, scrcpyPath } from '$electron/configs/index.js'
|
||||||
|
|
||||||
let adbkit
|
let adbkit
|
||||||
|
|
||||||
|
@ -1,28 +1,32 @@
|
|||||||
import remote from '@electron/remote'
|
import remote from '@electron/remote'
|
||||||
import { FindInPage } from 'electron-find-in-page'
|
import { FindInPage } from 'electron-find-in-page'
|
||||||
import { primaryColor } from '#renderer/configs/index.js'
|
import { primaryColor } from '$renderer/configs/index.js'
|
||||||
|
|
||||||
export default () => {
|
export default () => {
|
||||||
const theme = {
|
const theme = {
|
||||||
isDark: false,
|
isDark: false,
|
||||||
}
|
}
|
||||||
|
|
||||||
let findInPage = create()
|
let findInPage = null
|
||||||
|
|
||||||
async function open({ isDark = false } = {}) {
|
async function open({ ...args } = {}) {
|
||||||
if (theme.isDark !== isDark) {
|
await create(args)
|
||||||
theme.isDark = isDark
|
|
||||||
await update()
|
|
||||||
}
|
|
||||||
|
|
||||||
return findInPage.openFindWindow()
|
return findInPage.openFindWindow()
|
||||||
}
|
}
|
||||||
|
|
||||||
function close() {
|
function close() {
|
||||||
|
if (!findInPage) {
|
||||||
|
return false
|
||||||
|
}
|
||||||
return findInPage.closeFindWindow()
|
return findInPage.closeFindWindow()
|
||||||
}
|
}
|
||||||
|
|
||||||
async function update() {
|
async function update({ isDark = false, ...args } = {}) {
|
||||||
|
if (isDark === theme.isDark) {
|
||||||
|
return findInPage
|
||||||
|
}
|
||||||
|
|
||||||
try {
|
try {
|
||||||
await findInPage.destroy()
|
await findInPage.destroy()
|
||||||
}
|
}
|
||||||
@ -30,11 +34,20 @@ export default () => {
|
|||||||
console.warn('error', error.message)
|
console.warn('error', error.message)
|
||||||
}
|
}
|
||||||
|
|
||||||
findInPage = create()
|
findInPage = null
|
||||||
|
|
||||||
|
return create({ ...args, isDark })
|
||||||
}
|
}
|
||||||
|
|
||||||
function create() {
|
async function create({ ...args } = {}) {
|
||||||
return new FindInPage(remote.getCurrentWebContents(), {
|
if (findInPage) {
|
||||||
|
return update(args)
|
||||||
|
}
|
||||||
|
|
||||||
|
theme.isDark = args.isDark
|
||||||
|
|
||||||
|
findInPage = new FindInPage(remote.getCurrentWebContents(), {
|
||||||
|
...args,
|
||||||
preload: true,
|
preload: true,
|
||||||
inputFocusColor: primaryColor,
|
inputFocusColor: primaryColor,
|
||||||
...(theme.isDark
|
...(theme.isDark
|
||||||
@ -48,6 +61,8 @@ export default () => {
|
|||||||
}
|
}
|
||||||
: {}),
|
: {}),
|
||||||
})
|
})
|
||||||
|
|
||||||
|
return findInPage
|
||||||
}
|
}
|
||||||
|
|
||||||
return {
|
return {
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
import appStore from './store.js'
|
import appStore from './store.js'
|
||||||
import { createProxy } from './index.js'
|
import { createProxy } from './index.js'
|
||||||
import log from '#electron/helpers/log.js'
|
import log from '$electron/helpers/log.js'
|
||||||
|
|
||||||
const debug = appStore.get('common.debug') || false
|
const debug = appStore.get('common.debug') || false
|
||||||
|
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
import { shell } from 'electron'
|
import { shell } from 'electron'
|
||||||
import log from 'electron-log/main.js'
|
import log from 'electron-log/main.js'
|
||||||
import { createProxy } from '#electron/helpers/index'
|
import { createProxy } from '$electron/helpers/index'
|
||||||
|
|
||||||
log.transports.console.level = false
|
log.transports.console.level = false
|
||||||
|
|
||||||
|
@ -2,11 +2,11 @@
|
|||||||
"compilerOptions": {
|
"compilerOptions": {
|
||||||
"baseUrl": ".",
|
"baseUrl": ".",
|
||||||
"paths": {
|
"paths": {
|
||||||
"#/*": ["src/*"],
|
"$/*": ["src/*"],
|
||||||
"#copilot/*": ["copilot/*"],
|
"$copilot/*": ["copilot/*"],
|
||||||
"#root/*": ["*"],
|
"$root/*": ["*"],
|
||||||
"#electron/*": ["electron/*"],
|
"$electron/*": ["electron/*"],
|
||||||
"#renderer/*": ["src/*"]
|
"$renderer/*": ["src/*"]
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"exclude": ["node_modules", "dist", "dist-electron", "dist-release"],
|
"exclude": ["node_modules", "dist", "dist-electron", "dist-release"],
|
||||||
|
@ -35,8 +35,8 @@ import Preference from './components/Preference/index.vue'
|
|||||||
import About from './components/About/index.vue'
|
import About from './components/About/index.vue'
|
||||||
import AppSearch from './components/AppSearch/index.vue'
|
import AppSearch from './components/AppSearch/index.vue'
|
||||||
|
|
||||||
import { useThemeStore } from '#/store/theme/index.js'
|
import { useThemeStore } from '$/store/theme/index.js'
|
||||||
import { usePreferenceStore } from '#/store/preference/index.js'
|
import { usePreferenceStore } from '$/store/preference/index.js'
|
||||||
|
|
||||||
const tabsModel = ref([
|
const tabsModel = ref([
|
||||||
{
|
{
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
<template>
|
<template>
|
||||||
<div class="flex flex-col items-center justify-center h-full -mt-8">
|
<div class="flex flex-col items-center justify-center h-full -mt-8">
|
||||||
<a class="block" :href="escrcpyURL" target="_blank">
|
<a class="block" :href="escrcpyURL" target="_blank">
|
||||||
<img src="#electron/resources/build/logo.png" class="h-48" alt="" />
|
<img src="$electron/resources/build/logo.png" class="h-48" alt="" />
|
||||||
</a>
|
</a>
|
||||||
|
|
||||||
<div class="pt-4 text-xl text-center italic text-gray-700 dark:text-white">
|
<div class="pt-4 text-xl text-center italic text-gray-700 dark:text-white">
|
||||||
|
@ -15,7 +15,7 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script setup>
|
<script setup>
|
||||||
import { useThemeStore } from '#/store'
|
import { useThemeStore } from '$/store'
|
||||||
|
|
||||||
const themeStore = useThemeStore()
|
const themeStore = useThemeStore()
|
||||||
|
|
||||||
|
@ -5,7 +5,7 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import LoadingIcon from '#/components/Device/components/LoadingIcon/index.vue'
|
import LoadingIcon from '$/components/Device/components/LoadingIcon/index.vue'
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
props: {
|
props: {
|
||||||
|
@ -15,7 +15,7 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import { sleep } from '#/utils'
|
import { sleep } from '$/utils'
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
props: {
|
props: {
|
||||||
|
@ -21,7 +21,7 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import { sleep } from '#/utils'
|
import { sleep } from '$/utils'
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
props: {
|
props: {
|
||||||
|
@ -18,7 +18,7 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import { sleep } from '#/utils'
|
import { sleep } from '$/utils'
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
props: {
|
props: {
|
||||||
|
@ -5,7 +5,7 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import LoadingIcon from '#/components/Device/components/LoadingIcon/index.vue'
|
import LoadingIcon from '$/components/Device/components/LoadingIcon/index.vue'
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
props: {
|
props: {
|
||||||
|
@ -12,7 +12,7 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import { sleep } from '#/utils'
|
import { sleep } from '$/utils'
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
props: {
|
props: {
|
||||||
|
@ -3,7 +3,7 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import { sleep } from '#/utils'
|
import { sleep } from '$/utils'
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
props: {
|
props: {
|
||||||
|
@ -3,7 +3,7 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import { sleep } from '#/utils'
|
import { sleep } from '$/utils'
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
props: {
|
props: {
|
||||||
|
@ -3,7 +3,7 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import { sleep } from '#/utils'
|
import { sleep } from '$/utils'
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
props: {
|
props: {
|
||||||
|
@ -170,6 +170,10 @@ export default {
|
|||||||
|
|
||||||
const totalCount = this.wirelessList.length
|
const totalCount = this.wirelessList.length
|
||||||
|
|
||||||
|
if (!totalCount) {
|
||||||
|
return false
|
||||||
|
}
|
||||||
|
|
||||||
let failCount = 0
|
let failCount = 0
|
||||||
|
|
||||||
const promises = []
|
const promises = []
|
||||||
|
@ -30,7 +30,7 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import { sleep } from '#/utils'
|
import { sleep } from '$/utils'
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
inheritAttrs: false,
|
inheritAttrs: false,
|
||||||
|
@ -120,7 +120,7 @@ import MirrorAction from './components/MirrorAction/index.vue'
|
|||||||
import MoreDropdown from './components/MoreDropdown/index.vue'
|
import MoreDropdown from './components/MoreDropdown/index.vue'
|
||||||
import WirelessAction from './components/WirelessAction/index.vue'
|
import WirelessAction from './components/WirelessAction/index.vue'
|
||||||
|
|
||||||
import { isIPWithPort, sleep } from '#/utils/index.js'
|
import { isIPWithPort, sleep } from '$/utils/index.js'
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
components: {
|
components: {
|
||||||
|
@ -18,7 +18,7 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import { i18n } from '#/locales/index.js'
|
import { i18n } from '$/locales/index.js'
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
props: {
|
props: {
|
||||||
|
@ -207,8 +207,8 @@ import AudioCodecSelect from './components/AudioCodecSelect/index.vue'
|
|||||||
import DisplaySelect from './components/DisplaySelect/index.vue'
|
import DisplaySelect from './components/DisplaySelect/index.vue'
|
||||||
import KeyboardInjectSelect from './components/KeyboardInjectSelect/index.vue'
|
import KeyboardInjectSelect from './components/KeyboardInjectSelect/index.vue'
|
||||||
|
|
||||||
import { usePreferenceStore } from '#/store/index.js'
|
import { usePreferenceStore } from '$/store/index.js'
|
||||||
import LoadingIcon from '#/components/Device/components/LoadingIcon/index.vue'
|
import LoadingIcon from '$/components/Device/components/LoadingIcon/index.vue'
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
components: {
|
components: {
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
import '#/utils/console.js'
|
import '$/utils/console.js'
|
||||||
|
|
||||||
import { createApp, toRaw } from 'vue'
|
import { createApp, toRaw } from 'vue'
|
||||||
import App from './App.vue'
|
import App from './App.vue'
|
||||||
@ -10,7 +10,7 @@ import icons from './icons/index.js'
|
|||||||
|
|
||||||
import { i18n, t } from './locales/index.js'
|
import { i18n, t } from './locales/index.js'
|
||||||
|
|
||||||
import { replaceIP, restoreIP } from '#/utils/index.js'
|
import { replaceIP, restoreIP } from '$/utils/index.js'
|
||||||
|
|
||||||
import 'virtual:uno.css'
|
import 'virtual:uno.css'
|
||||||
import './styles/index.js'
|
import './styles/index.js'
|
||||||
|
@ -1,8 +1,8 @@
|
|||||||
import { defineStore } from 'pinia'
|
import { defineStore } from 'pinia'
|
||||||
import dayjs from 'dayjs'
|
import dayjs from 'dayjs'
|
||||||
|
|
||||||
import { t } from '#/locales/index.js'
|
import { t } from '$/locales/index.js'
|
||||||
import { isIPWithPort, replaceIP } from '#/utils/index.js'
|
import { isIPWithPort, replaceIP } from '$/utils/index.js'
|
||||||
|
|
||||||
const $appStore = window.appStore
|
const $appStore = window.appStore
|
||||||
|
|
||||||
|
@ -11,7 +11,7 @@ import {
|
|||||||
setStoreData,
|
setStoreData,
|
||||||
} from './helpers/index.js'
|
} from './helpers/index.js'
|
||||||
|
|
||||||
import { replaceIP, restoreIP } from '#/utils/index.js'
|
import { replaceIP, restoreIP } from '$/utils/index.js'
|
||||||
|
|
||||||
const { adbPath, scrcpyPath, gnirehtetPath } = window.electron?.configs || {}
|
const { adbPath, scrcpyPath, gnirehtetPath } = window.electron?.configs || {}
|
||||||
|
|
||||||
|
@ -18,9 +18,9 @@ const merge = (config, { command = '' } = {}) =>
|
|||||||
{
|
{
|
||||||
resolve: {
|
resolve: {
|
||||||
alias: {
|
alias: {
|
||||||
'#root': resolve(),
|
$root: resolve(),
|
||||||
'#electron': resolve('electron'),
|
$electron: resolve('electron'),
|
||||||
'#renderer': resolve('src'),
|
$renderer: resolve('src'),
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
plugins: [...(command === 'serve' ? [notBundle()] : [])],
|
plugins: [...(command === 'serve' ? [notBundle()] : [])],
|
||||||
@ -41,9 +41,9 @@ export default args =>
|
|||||||
},
|
},
|
||||||
resolve: {
|
resolve: {
|
||||||
alias: {
|
alias: {
|
||||||
'#': resolve('src'),
|
$: resolve('src'),
|
||||||
'#copilot': resolve('copilot'),
|
$copilot: resolve('copilot'),
|
||||||
'#electron': resolve('electron'),
|
$electron: resolve('electron'),
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
plugins: [
|
plugins: [
|
||||||
|
Loading…
x
Reference in New Issue
Block a user