1.0.6 • Published 2 years ago

public-captcha v1.0.6

Weekly downloads
-
License
MIT
Repository
-
Last release
2 years ago

public-captcha

A Vue.js project

Build Setup

# install dependencies
npm install

# serve with hot reload at localhost:8080
npm run dev

# build for production with minification
npm run build

For detailed explanation on how things work, consult the docs for vue-loader.

基础组件参考: https://gitee.com/anji-plus/captcha

本地开发: package.json 去除入口配置 "main", private改为false webpack.config.js entry: './src/main.js', output: { filename: 'build.js', library: 'public-captcha', // 指定的就是你使用require时的模块名 libraryTarget: 'umd', // 指定输出格式 umdNamedDefine: true // 会对 UMD 的构建过程中的 AMD 模块进行命名。否则就使用匿名的 define }

线上打包: package.json 增加入口配置 "main": "dist/public-captcha.min.js", webpack.config.js entry: "./src/components/verifition/index.js", output: { filename: 'public-captcha.min.js', library: 'public-captcha', // 指定的就是你使用require时的模块名 libraryTarget: 'umd', // 指定输出格式 umdNamedDefine: true // 会对 UMD 的构建过程中的 AMD 模块进行命名。否则就使用匿名的 define }

打包: npm run build

发布: npm login 输入账号密码邮箱 提示登录成功 npm publish

1.0.6

2 years ago

1.0.5

3 years ago

1.0.4

3 years ago

1.0.3

3 years ago

1.0.2

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago