当前位置:网站首页>使用rollup创建组件库

使用rollup创建组件库

2020-12-06 22:38:57 lilugirl

初始化项目

mkdir rollup-datav-libs
cd rollup-data-libs
npm init -y
npm i rollup -D

在package.json文件中添加dev命令  "dev":"rollup"

{
  "name": "rollup-datav-libs",
  "version": "1.0.0",
  "description": "datav commponents library",
  "main": "index.js",
  "scripts": {
    "dev":"rollup"
  },
  "author": "liuyi<794516454@qq.com>",
  "license": "ISC",
  "devDependencies": {
    "rollup": "^2.34.2"
  }
}

 

版权声明
本文为[lilugirl]所创,转载请带上原文链接,感谢
https://my.oschina.net/lilugirl2005/blog/4777141