update and introduce react router
This commit is contained in:
parent
bf32423169
commit
fa49ed07db
27 changed files with 349 additions and 187 deletions
|
|
@ -1,6 +1,7 @@
|
|||
import { reactRouter } from "@react-router/dev/vite";
|
||||
import { defineConfig } from "vite";
|
||||
import react from "@vitejs/plugin-react";
|
||||
import checker from "vite-plugin-checker";
|
||||
import tsconfigPaths from "vite-tsconfig-paths";
|
||||
|
||||
// https://vitejs.dev/config/
|
||||
export default defineConfig({
|
||||
|
|
@ -8,9 +9,10 @@ export default defineConfig({
|
|||
checker({
|
||||
biome: { command: "check", dev: { command: "lint" } },
|
||||
typescript: true,
|
||||
stylelint: { lintCommand: "stylelint ./src/**/*.css" },
|
||||
stylelint: { lintCommand: "stylelint ./app/**/*.css" },
|
||||
}),
|
||||
react(),
|
||||
reactRouter(),
|
||||
tsconfigPaths(),
|
||||
],
|
||||
server: {
|
||||
fs: {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue