2026-02-26 00:17:23 +08:00
|
|
|
import { defineConfig } from '@rsbuild/core';
|
2026-02-26 00:27:38 +08:00
|
|
|
import { pluginBabel } from '@rsbuild/plugin-babel';
|
2026-02-26 00:17:23 +08:00
|
|
|
import { pluginSolid } from '@rsbuild/plugin-solid';
|
|
|
|
|
import tailwindcss from '@tailwindcss/vite';
|
|
|
|
|
|
|
|
|
|
export default defineConfig({
|
|
|
|
|
plugins: [
|
2026-02-26 00:27:38 +08:00
|
|
|
pluginBabel({
|
|
|
|
|
include: /\.(?:jsx|tsx)$/,
|
|
|
|
|
}),
|
2026-02-26 00:17:23 +08:00
|
|
|
pluginSolid(),
|
|
|
|
|
],
|
|
|
|
|
tools: {
|
|
|
|
|
vite: {
|
|
|
|
|
plugins: [
|
|
|
|
|
tailwindcss(),
|
|
|
|
|
],
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
html: {
|
|
|
|
|
template: './src/index.html',
|
|
|
|
|
},
|
|
|
|
|
source: {
|
|
|
|
|
entry: {
|
|
|
|
|
index: './src/main.tsx',
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
output: {
|
|
|
|
|
distPath: {
|
|
|
|
|
root: 'dist/web',
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
});
|