Is there a way to build with single css in storybook+vite environment?

Viewed 15

When using webpack, it was possible to build a single css file using mini-css-extract-plugin. Is there any configuration or plugin that provides the same function in vite?

I tried setting it in main.js as below, but I couldn't get the desired result.

viteFinal : async (config, { configType }) => {
config.resolve.modules = [
  ...config.resolve.modules || [],
  path.resolve("./"),
];

return {
  ...config,
  build : {
    cssCodeSplit : false,
  },
};
0 Answers
Related