PromucFlow_constructor/app/client/packages/storybook/vite.config.js

33 lines
754 B
JavaScript
Raw Normal View History

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",
}),
],
css: {
postcss: {
plugins: [
postcssNesting,
postcssImport,
postcssAtRulesVariables,
postcssEach,
postcssModulesValues,
],
},
},
});