mirror of
https://github.com/ragestudio/comty.git
synced 2025-06-11 03:24:16 +00:00
update config
This commit is contained in:
parent
5bb4f50023
commit
f36b4093e6
@ -2,6 +2,7 @@ const path = require("path")
|
|||||||
const { builtinModules } = require("module")
|
const { builtinModules } = require("module")
|
||||||
|
|
||||||
const aliases = {
|
const aliases = {
|
||||||
|
"node:buffer": "buffer",
|
||||||
"~": __dirname,
|
"~": __dirname,
|
||||||
"~/": `${path.resolve(__dirname, "src")}/`,
|
"~/": `${path.resolve(__dirname, "src")}/`,
|
||||||
"@src": path.join(__dirname, "src"),
|
"@src": path.join(__dirname, "src"),
|
||||||
@ -25,6 +26,11 @@ module.exports = (config = {}) => {
|
|||||||
config.server = {}
|
config.server = {}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// config.define = {
|
||||||
|
// "global.Uint8Array": "Uint8Array",
|
||||||
|
// "process.env.NODE_DEBUG": false,
|
||||||
|
// }
|
||||||
|
|
||||||
config.resolve.alias = aliases
|
config.resolve.alias = aliases
|
||||||
config.server.port = process.env.listenPort ?? 8000
|
config.server.port = process.env.listenPort ?? 8000
|
||||||
config.server.host = "0.0.0.0"
|
config.server.host = "0.0.0.0"
|
||||||
|
@ -1,10 +1,8 @@
|
|||||||
import path from "path"
|
|
||||||
import getConfig from "./.config.js"
|
|
||||||
|
|
||||||
import { defineConfig } from "vite"
|
import { defineConfig } from "vite"
|
||||||
|
|
||||||
import react from "@vitejs/plugin-react"
|
import react from "@vitejs/plugin-react"
|
||||||
|
|
||||||
//import electron, { onstart } from "vite-plugin-electron"
|
import getConfig from "./.config.js"
|
||||||
|
|
||||||
export default defineConfig({
|
export default defineConfig({
|
||||||
plugins: [
|
plugins: [
|
||||||
|
Loading…
x
Reference in New Issue
Block a user