d1b5d64bc8
变更内容: - scriptEvalClient: 替换系统提示词为 DeepSeek V4 完整版(六维评分细则、 评分类别、评分铁律、等级标准),维度满分调整为 hook 20/plot 20/ character 18/dialogue 15/visual 15/content 12,总分算法改为直接累加, 模型使用 qwen3.7-max,增加请求链路 console 日志 - ScriptTokensPage: 同步维度满分和描述(角色塑造 18、内容深度 12), 增加页面挂载和评测流程的 console 日志 - vite.config: esbuild.drop 移除 "console",保留 "debugger", 确保开发环境 console 日志正常输出
46 lines
1.1 KiB
TypeScript
46 lines
1.1 KiB
TypeScript
import react from "@vitejs/plugin-react";
|
|
import { compression } from "vite-plugin-compression2";
|
|
import { defineConfig } from "vite";
|
|
|
|
export default defineConfig({
|
|
plugins: [
|
|
react(),
|
|
compression({ algorithms: ["gzip", "brotliCompress"], threshold: 1024 }),
|
|
],
|
|
server: {
|
|
port: 5174,
|
|
host: "127.0.0.1",
|
|
proxy: {
|
|
"/api": {
|
|
target: "http://47.110.225.76:3600",
|
|
changeOrigin: true,
|
|
},
|
|
},
|
|
},
|
|
preview: {
|
|
port: 4174,
|
|
host: "127.0.0.1",
|
|
},
|
|
esbuild: {
|
|
drop: ["debugger"],
|
|
},
|
|
build: {
|
|
sourcemap: "hidden",
|
|
rollupOptions: {
|
|
output: {
|
|
manualChunks(id: string) {
|
|
if (id.includes("node_modules/react") || id.includes("node_modules/react-dom") || id.includes("node_modules/scheduler")) {
|
|
return "vendor-react";
|
|
}
|
|
if (id.includes("node_modules/@ant-design") || id.includes("node_modules/antd") || id.includes("node_modules/rc-")) {
|
|
return "vendor-antd";
|
|
}
|
|
if (id.includes("node_modules/@xyflow")) {
|
|
return "vendor-xyflow";
|
|
}
|
|
},
|
|
},
|
|
},
|
|
},
|
|
});
|