@analogjs/storybook-angular 2.7.1 → 2.7.2-beta.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -19
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -208,25 +208,7 @@ export default config;
|
|
|
208
208
|
|
|
209
209
|
### With Nx
|
|
210
210
|
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
```ts
|
|
214
|
-
import { nxViteTsPaths } from '@nx/vite/plugins/nx-tsconfig-paths.plugin';
|
|
215
|
-
import { UserConfig, mergeConfig } from 'vite';
|
|
216
|
-
|
|
217
|
-
import type { StorybookConfig } from '@analogjs/storybook-angular';
|
|
218
|
-
|
|
219
|
-
const config: StorybookConfig = {
|
|
220
|
-
// ... other config, addons, etc.
|
|
221
|
-
async viteFinal(config: UserConfig) {
|
|
222
|
-
return mergeConfig(config, {
|
|
223
|
-
plugins: [nxViteTsPaths()],
|
|
224
|
-
});
|
|
225
|
-
},
|
|
226
|
-
};
|
|
227
|
-
|
|
228
|
-
export default config;
|
|
229
|
-
```
|
|
211
|
+
Nx workspaces use the same `vite-tsconfig-paths` plugin in the `.storybook/main.ts`. The `nxViteTsPaths` plugin from `@nx/vite` is deprecated and is removed in Nx 24, so replace it with `viteTsConfigPaths()`.
|
|
230
212
|
|
|
231
213
|
## Using File Replacements
|
|
232
214
|
|