0.1.0 • Published 2 years ago
tao-verify-code v0.1.0
verify-code
造车轮小记
package.json 中添加
"name": "tao-verify-code",
"main": "lib/tao-verify-code.umd.min.js",
"keywords": [
// "vue",
// "tao-verify-code",
// "verify-code"
],
"private": false,
"scripts":{
// 但执行npm run lib 时可以打出一个包,把main.js 的东西打 包成···
"lib": "vue-cli-service build --target lib --name tao-verify-code --dest lib ./src/main.js"}
// 许可证
"license":"MIT",
// mian.js 中改为下面,给组件添加install方法,
import TaoVerifyCode from './tao-verify-code.vue'
TaoVerifyCode.install = Vue => Vue.component(TaoVerifyCode.name, TaoVerifyCode)
-webkit-appearance: none; 取消一些默认样式
npm run lib 打包 npm pack
Project setup
npm install
Compiles and hot-reloads for development
npm run serve
Compiles and minifies for production
npm run build
Lints and fixes files
npm run lint
Customize configuration
0.1.0
2 years ago