37 lines
656 B
TypeScript
37 lines
656 B
TypeScript
import { defineConfig } from '@rsbuild/core';
|
|
import { pluginBabel } from '@rsbuild/plugin-babel';
|
|
import { pluginSolid } from '@rsbuild/plugin-solid';
|
|
import tailwindcss from '@tailwindcss/vite';
|
|
|
|
export default defineConfig({
|
|
plugins: [
|
|
pluginBabel({
|
|
include: /\.(?:jsx|tsx)$/,
|
|
}),
|
|
pluginSolid(),
|
|
],
|
|
tools: {
|
|
vite: {
|
|
plugins: [
|
|
tailwindcss(),
|
|
],
|
|
},
|
|
},
|
|
html: {
|
|
template: './src/index.html',
|
|
},
|
|
source: {
|
|
entry: {
|
|
index: './src/main.tsx',
|
|
},
|
|
},
|
|
output: {
|
|
distPath: {
|
|
root: 'dist/web',
|
|
},
|
|
copy: [
|
|
{ from: './content', to: 'content' },
|
|
],
|
|
},
|
|
});
|