diff --git a/README.md b/README.md index 82f66ac..6754d1e 100644 --- a/README.md +++ b/README.md @@ -3,7 +3,7 @@ [![gitee star](https://gitee.com/xuliangzhan_admin/vxe-table-plugin-iview/badge/star.svg?theme=dark)](https://gitee.com/xuliangzhan_admin/vxe-table-plugin-iview/stargazers) [![npm version](https://img.shields.io/npm/v/vxe-table-plugin-iview.svg?style=flat-square)](https://www.npmjs.com/package/vxe-table-plugin-iview) [![npm downloads](https://img.shields.io/npm/dm/vxe-table-plugin-iview.svg?style=flat-square)](http://npm-stat.com/charts.html?package=vxe-table-plugin-iview) -[![gzip size: JS](http://img.badgesize.io/https://unpkg.com/vxe-table-plugin-iview/dist/index.min.js?compression=gzip&label=gzip%20size:%20JS)](https://unpkg.com/vxe-table-plugin-iview/dist/index.min.js) +[![gzip size: JS](http://img.badgesize.io/https://unpkg.com/vxe-table-plugin-iview/dist/index.umd.min.js?compression=gzip&label=gzip%20size:%20JS)](https://unpkg.com/vxe-table-plugin-iview/dist/index.umd.min.js) [![gzip size: CSS](http://img.badgesize.io/https://unpkg.com/vxe-table-plugin-iview/dist/style.min.css?compression=gzip&label=gzip%20size:%20CSS)](https://unpkg.com/vxe-table-plugin-iview/dist/style.min.css) [![npm license](https://img.shields.io/github/license/mashape/apistatus.svg)](LICENSE) diff --git a/gulpfile.js b/gulpfile.js index 67f5526..c1641bb 100644 --- a/gulpfile.js +++ b/gulpfile.js @@ -72,10 +72,17 @@ gulp.task('build_umd', function () { }]] })) .pipe(replace(`global.${exportModuleName} = mod.exports;`, `global.${exportModuleName} = mod.exports.default;`)) + .pipe(rename({ + basename: 'index', + suffix: '.umd', + extname: '.js' + })) .pipe(gulp.dest('dist')) .pipe(uglify()) .pipe(rename({ - extname: '.min.js' + basename: 'index', + suffix: '.umd.min', + extname: '.js' })) .pipe(gulp.dest('dist')) }) diff --git a/package.json b/package.json index da8043d..27a84f2 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "vxe-table-plugin-iview", - "version": "1.9.1", + "version": "1.9.2", "description": "基于 vxe-table 表格的适配插件,用于兼容 iview、view-design 组件库", "scripts": { "lib": "gulp build" @@ -12,9 +12,9 @@ "style.scss" ], "main": "dist/index.common.js", + "unpkg": "dist/index.umd.min.js", + "jsdelivr": "dist/index.umd.min.js", "style": "dist/style.min.css", - "unpkg": "dist/index.min.js", - "jsdelivr": "dist/index.min.js", "typings": "index.ts", "devDependencies": { "@babel/core": "^7.4.4", @@ -49,8 +49,8 @@ "prettier": "^1.18.2", "typescript": "^3.9.3", "vue": "^2.6.11", - "vxe-table": "^2.9.18", - "xe-utils": "^2.7.8" + "vxe-table": "^2.9.21", + "xe-utils": "^2.7.11" }, "peerDependencies": { "view-design": ">= 4.0.0",