mirror of
https://github.com/electron-vite/electron-vite-vue
synced 2025-01-20 20:36:35 +08:00
14 lines
411 B
TypeScript
14 lines
411 B
TypeScript
import { createApp } from 'vue'
|
|
import App from './App.vue'
|
|
// vite 会编译 import 的形式;所以 electron 及 node.js 内置模块用 require 形式
|
|
const { ipcRenderer } = require('electron')
|
|
import { store, isdev } from '/utils/index'
|
|
|
|
import './index.css'
|
|
|
|
console.log('ipcRenderer:', ipcRenderer)
|
|
console.log('Store', store)
|
|
console.log('electron is dev', isdev)
|
|
|
|
createApp(App as any).mount('#app')
|