Skip to content

Latest commit

 

History

History
31 lines (20 loc) · 828 Bytes

README.md

File metadata and controls

31 lines (20 loc) · 828 Bytes

中文 | English

npm

运行svg预览器。

image

安装

NPM

npm add svg-to-component-preview

使用

  • 返回模块路径,和预览svg组件的临时存储目录
import { packagePath, componentsPath } from 'svg-to-component-preview';

console.log(packagePath, componentsPath);

// 启动预览
spawn(`pnpm`, ['run', 'start'], {
    cwd: previewPackagePath,
    stdio: 'inherit',
});