mirror of
https://git.rdcenter.ru/RDCenter/skb-kit.git
synced 2026-12-05 05:29:45 +00:00
перенес структуру Севы со своими правками
This commit is contained in:
1 parent
3a1cac0dfe
commit
808d97eb4b
331 files changed
+12260
-19950
No files matched your search
@@ -0,0 +1,39 @@
|
||||
import { defineConfig } from "vite";
|
||||
import react from "@vitejs/plugin-react";
|
||||
import path from "path";
|
||||
|
||||
export default defineConfig({
|
||||
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
|
||||
},
|
||||
});
|
||||
Reference in new issue
Block a user