qwikifiers / qwik-nx

Nx plugin for Qwik
130 stars 23 forks source link

fix(qwik-nx): override qwikVite plugin for storybook #127

Closed dmitry-stepanenko closed 1 year ago

dmitry-stepanenko commented 1 year ago

What is it?

Description

Storybook build artifacts are being put in different folders right now, because qwikVite plugin from the main config is being pulled from the main vite.config.ts with client.outDir = "../../dist/apps/.../client".

Instead, qwikVite should be overridden in .storybook/main.ts under the hood by withNx function with a new instance of a plugin.