Initial commit

This commit is contained in:
root committed 2026-04-29 10:03:27 +00:00
commit d1c730a53a
257 files changed
+19025

No files matched your search

+40
View File
@@ -0,0 +1,40 @@
import { defineConfig } from "vite";
import react from "@vitejs/plugin-react";
import path from "path";
export default defineConfig({
base: '/wp-content/reactpress/apps/skb/dist/',
plugins: [react()],
resolve: {
alias: {
"@": path.resolve(__dirname, "src"),
},
},
css: {
modules: {
localsConvention: "dashes", // Разрешаем имена классов с тире и нижними подчёркиваниями
},
preprocessorOptions: {
scss: {
additionalData: (content: string, resourcePath: string) => {
if (/App\.scss$/.test(resourcePath)) {
return `
@import "./variables/mixin.scss";
@import "./variables/variables.scss";
${content}
`;
}
return `
@import "@/app/styles/variables/mixin.scss";
@import "@/app/styles/variables/variables.scss";
${content}
`;
},
},
},
},
server: {
port: 3000, // Устанавливаем порт 3000
},
});