Developing_Web_Components_with_Svelte

CHAPTER 1 Getting Started

setup

npm create vite@latest cobalt --template svelte
npm create vite@latest malui --template svelte

Integrating a Playground

安装 storybook

npx sb init --builder @storybook/builder-vite
npx storybook@latest init


export default defineConfig({
  plugins: [svelte()],
  compilerOptions: {
    customElements: true,
  },
});

  目录