README
eui-plugin
开发一个属于我的插件
准备
在https://www.npmjs.com/ 中注册一个账号,成功后执行
npm login
输入用户名和密码
开发,打包,发布
# install dependencies
npm install
# serve with hot reload at localhost:8080
npm run dev
# build for production with minification
npm run build
# release the production and publish to NPM
npm run release
引入
发布包名为 cesc-arcgis-plugin 注意:发布的包为公有包,可供其他人下载使用,但是只允许作者修改。 而且包名必须未在npm上存在。 后续使用者请更改为新的包名
//命令行中npm cache clean --force
npm install test-sam-first-plugin;
//代码中
import myPlugin from 'test-sam-first-plugin'
Vue.use(myPlugin);