diff --git a/README.md b/README.md index 2280823..10178ba 100644 --- a/README.md +++ b/README.md @@ -3,7 +3,7 @@ [![gitee star](https://gitee.com/xuliangzhan_admin/vxe-table-plugin-export-pdf/badge/star.svg?theme=dark)](https://gitee.com/xuliangzhan_admin/vxe-table-plugin-export-pdf/stargazers) [![npm version](https://img.shields.io/npm/v/vxe-table-plugin-export-pdf.svg?style=flat-square)](https://www.npmjs.com/package/vxe-table-plugin-export-pdf) [![npm downloads](https://img.shields.io/npm/dm/vxe-table-plugin-export-pdf.svg?style=flat-square)](http://npm-stat.com/charts.html?package=vxe-table-plugin-export-pdf) -[![gzip size: JS](http://img.badgesize.io/https://unpkg.com/vxe-table-plugin-export-pdf/dist/index.min.js?compression=gzip&label=gzip%20size:%20JS)](https://unpkg.com/vxe-table-plugin-export-pdf/dist/index.min.js) +[![gzip size: JS](http://img.badgesize.io/https://unpkg.com/vxe-table-plugin-export-pdf/dist/index.umd.min.js?compression=gzip&label=gzip%20size:%20JS)](https://unpkg.com/vxe-table-plugin-export-pdf/dist/index.umd.min.js) [![npm license](https://img.shields.io/github/license/mashape/apistatus.svg)](LICENSE) 基于 [vxe-table](https://www.npmjs.com/package/vxe-table) 表格的增强插件,支持导出 pdf 格式 diff --git a/gulpfile.js b/gulpfile.js index e574137..53b8c41 100644 --- a/gulpfile.js +++ b/gulpfile.js @@ -59,10 +59,17 @@ gulp.task('build_umd', function () { })) .pipe(replace(`global.jspdf`, `global.jsPDF || global.jspdf`)) .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 10e9070..54a8dab 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "vxe-table-plugin-export-pdf", - "version": "1.8.6", + "version": "1.8.7", "description": "基于 vxe-table 表格的增强插件,支持导出 pdf 格式", "scripts": { "lib": "gulp build" @@ -13,9 +13,9 @@ "*.d.ts" ], "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", @@ -51,8 +51,8 @@ "prettier": "^1.18.2", "typescript": "^3.9.3", "vue": "^2.6.11", - "vxe-table": "^2.9.19", - "xe-utils": "^2.7.8" + "vxe-table": "^2.9.21", + "xe-utils": "^2.7.11" }, "peerDependencies": { "vxe-table": ">= 2.9.0",