2024-04-22 09:17:28 +00:00
|
|
|
import { defineConfig } from "vite";
|
|
|
|
|
import react from "@vitejs/plugin-react";
|
|
|
|
|
import svgr from "vite-plugin-svgr";
|
|
|
|
|
import postcssNesting from "postcss-nesting";
|
|
|
|
|
import postcssImport from "postcss-import";
|
|
|
|
|
import postcssAtRulesVariables from "postcss-at-rules-variables";
|
|
|
|
|
import postcssEach from "postcss-each";
|
|
|
|
|
import postcssModulesValues from "postcss-modules-values";
|
|
|
|
|
|
|
|
|
|
export default defineConfig({
|
2024-07-29 13:23:26 +00:00
|
|
|
plugins: [
|
|
|
|
|
react(),
|
|
|
|
|
svgr({
|
|
|
|
|
svgrOptions: {
|
|
|
|
|
exportType: "named",
|
|
|
|
|
ref: true,
|
|
|
|
|
},
|
|
|
|
|
include: "**/*.svg",
|
|
|
|
|
}),
|
|
|
|
|
],
|
2024-04-22 09:17:28 +00:00
|
|
|
css: {
|
|
|
|
|
postcss: {
|
|
|
|
|
plugins: [
|
|
|
|
|
postcssNesting,
|
|
|
|
|
postcssImport,
|
|
|
|
|
postcssAtRulesVariables,
|
|
|
|
|
postcssEach,
|
|
|
|
|
postcssModulesValues,
|
|
|
|
|
],
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
});
|