refactor: use vite alternative rollup

This commit is contained in:
草鞋没号
2021-11-11 17:52:50 +08:00
parent be6e33c148
commit b4fc358318
37 changed files with 555 additions and 1187 deletions

View File

@@ -1,7 +1,6 @@
import fs from 'fs'
import { contextBridge, ipcRenderer } from 'electron'
import { domReady } from './utils'
import { injectWsCode } from './ws'
import { useLoading } from './loading'
const isDev = process.env.NODE_ENV === 'development'
@@ -9,10 +8,6 @@ const { removeLoading, appendLoading } = useLoading()
domReady().then(() => {
appendLoading()
isDev && injectWsCode({
host: process.env.HOST, // '127.0.0.1'
port: process.env.PORT_WS as string, // process.env.npm_package_env_PORT_WS
})
})