Files
webpreview/rsbuild.config.ts
yuetsh efb535eb3d
Some checks are pending
Deploy / deploy (build, debian, 22) (push) Waiting to run
Deploy / deploy (build:staging, school, 8822) (push) Waiting to run
update
2026-05-07 01:31:14 -06:00

43 lines
836 B
TypeScript

import { defineConfig } from "@rsbuild/core"
import { pluginVue } from "@rsbuild/plugin-vue"
import { NaiveUiResolver } from "unplugin-vue-components/resolvers"
import Components from "unplugin-vue-components/rspack"
export default defineConfig({
plugins: [pluginVue()],
html: {
template: "./index.html",
},
source: {
entry: {
index: "./src/main.ts",
},
},
output: {
target: "web",
polyfill: "usage",
},
tools: {
rspack: {
plugins: [
Components({
resolvers: [NaiveUiResolver()],
}),
],
},
},
server: {
proxy: {
"/media": {
target: process.env.PUBLIC_WEB_URL,
changeOrigin: true,
},
"/ws": {
target: process.env.PUBLIC_WEB_URL,
ws: true,
changeOrigin: true,
},
},
},
})