在 Angular 中使用 Vite 和 Storybook 🎨
原文英文,约500词,阅读约需2分钟。发表于: 。Storybook is a frontend workshop for building UI components and pages in isolation. By default, Angular and Storybook uses Webpack to build and serve the Storybook application. Angular has already...
本文讲述如何在Angular项目中用Vite替代Webpack来构建和运行Storybook。步骤包括初始化Storybook,安装AnalogJS Vite插件和Storybook Vite构建器,配置.storybook/main.ts文件,更新package.json以运行Storybook命令,以及在使用Nx的项目中更新project.json。最后,通过运行Storybook命令启动开发服务器或构建Storybook。