svg-to-component-preview
TypeScript icon, indicating that this package has built-in type declarations

1.1.4 • Public • Published

中文 | 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',
});

Readme

Keywords

none

Package Sidebar

Install

npm i svg-to-component-preview

Weekly Downloads

0

Version

1.1.4

License

none

Unpacked Size

53.7 kB

Total Files

44

Last publish

Collaborators

  • taoliujun