dpzvc3-ui 3.1.4 → 3.1.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/dist/dpzvc3.esm.js +5 -4
- package/dist/dpzvc3.esm.js.map +1 -1
- package/dist/dpzvc3.esm.min.js +1 -1
- package/dist/dpzvc3.esm.min.js.map +1 -1
- package/dist/dpzvc3.js +5 -4
- package/dist/dpzvc3.js.map +1 -1
- package/dist/dpzvc3.min.js +1 -1
- package/dist/dpzvc3.min.js.map +1 -1
- package/dist/types/components/actionSheet/index.d.ts +6 -1
- package/dist/types/components/actionSheet/index.d.ts.map +1 -1
- package/dist/types/index.d.ts +2 -2
- package/package.json +7 -2
- package/build-style.js +0 -58
- package/dist-prod/91.05c8ec5277a15f939b0f.js +0 -3
- package/dist-prod/91.05c8ec5277a15f939b0f.js.LICENSE.txt +0 -25
- package/dist-prod/91.05c8ec5277a15f939b0f.js.map +0 -1
- package/dist-prod/actionsheet.0d67b6b08a62cf9360be.chunk.js +0 -2
- package/dist-prod/actionsheet.0d67b6b08a62cf9360be.chunk.js.map +0 -1
- package/dist-prod/badge.16ab5c05734fe1530701.chunk.js +0 -2
- package/dist-prod/badge.16ab5c05734fe1530701.chunk.js.map +0 -1
- package/dist-prod/button.39ac33aa7aaccc24b6a1.chunk.js +0 -2
- package/dist-prod/button.39ac33aa7aaccc24b6a1.chunk.js.map +0 -1
- package/dist-prod/card.16ed7eafe471bcc60ec6.chunk.js +0 -2
- package/dist-prod/card.16ed7eafe471bcc60ec6.chunk.js.map +0 -1
- package/dist-prod/cell.70ff74fba57e27df7f5a.chunk.js +0 -2
- package/dist-prod/cell.70ff74fba57e27df7f5a.chunk.js.map +0 -1
- package/dist-prod/cellswipe.f3ec62abd60729d8bc5a.chunk.js +0 -2
- package/dist-prod/cellswipe.f3ec62abd60729d8bc5a.chunk.js.map +0 -1
- package/dist-prod/checkbox.05c63a947ac98293c9f2.chunk.js +0 -2
- package/dist-prod/checkbox.05c63a947ac98293c9f2.chunk.js.map +0 -1
- package/dist-prod/guide.24f1968a568f20fbc84b.chunk.js +0 -2
- package/dist-prod/guide.24f1968a568f20fbc84b.chunk.js.map +0 -1
- package/dist-prod/header.eb10433dd892738ee95a.chunk.js +0 -2
- package/dist-prod/header.eb10433dd892738ee95a.chunk.js.map +0 -1
- package/dist-prod/index.html +0 -19
- package/dist-prod/indicator.0c09e3f238791cb478e0.chunk.js +0 -2
- package/dist-prod/indicator.0c09e3f238791cb478e0.chunk.js.map +0 -1
- package/dist-prod/loadmore.9bad88767cc43603f473.chunk.js +0 -2
- package/dist-prod/loadmore.9bad88767cc43603f473.chunk.js.map +0 -1
- package/dist-prod/main.662ad15361e7f3d20234.js +0 -2
- package/dist-prod/main.662ad15361e7f3d20234.js.map +0 -1
- package/dist-prod/message.de17fea3de4daa70bab4.chunk.js +0 -2
- package/dist-prod/message.de17fea3de4daa70bab4.chunk.js.map +0 -1
- package/dist-prod/modal.f9ec857acd9fbdf53f3b.chunk.js +0 -2
- package/dist-prod/modal.f9ec857acd9fbdf53f3b.chunk.js.map +0 -1
- package/dist-prod/picker.bca059ef59e3c42a401f.chunk.js +0 -2
- package/dist-prod/picker.bca059ef59e3c42a401f.chunk.js.map +0 -1
- package/dist-prod/popup.538422c7e188363a468d.chunk.js +0 -2
- package/dist-prod/popup.538422c7e188363a468d.chunk.js.map +0 -1
- package/dist-prod/progress.240de4b633002f573030.chunk.js +0 -2
- package/dist-prod/progress.240de4b633002f573030.chunk.js.map +0 -1
- package/dist-prod/prompt.dcda0b05ea02d59106b7.chunk.js +0 -2
- package/dist-prod/prompt.dcda0b05ea02d59106b7.chunk.js.map +0 -1
- package/dist-prod/radiobox.7c10f77aba5ae04b2e5c.chunk.js +0 -2
- package/dist-prod/radiobox.7c10f77aba5ae04b2e5c.chunk.js.map +0 -1
- package/dist-prod/rater.d46ae462c598c458e5a8.chunk.js +0 -2
- package/dist-prod/rater.d46ae462c598c458e5a8.chunk.js.map +0 -1
- package/dist-prod/slidebar.833e75b9eb0abef92453.chunk.js +0 -2
- package/dist-prod/slidebar.833e75b9eb0abef92453.chunk.js.map +0 -1
- package/dist-prod/spinner.6afb4f84cc29f0e2f8eb.chunk.js +0 -2
- package/dist-prod/spinner.6afb4f84cc29f0e2f8eb.chunk.js.map +0 -1
- package/dist-prod/swipe.3fe6ee6638765ec52d94.chunk.js +0 -2
- package/dist-prod/swipe.3fe6ee6638765ec52d94.chunk.js.map +0 -1
- package/dist-prod/switchbar.f24c76a03120f1bd961a.chunk.js +0 -2
- package/dist-prod/switchbar.f24c76a03120f1bd961a.chunk.js.map +0 -1
- package/dist-prod/tab.29f19483f699b7811259.chunk.js +0 -2
- package/dist-prod/tab.29f19483f699b7811259.chunk.js.map +0 -1
- package/dist-prod/text.a6e4251f772d23843e2b.chunk.js +0 -2
- package/dist-prod/text.a6e4251f772d23843e2b.chunk.js.map +0 -1
- package/dist-prod/totop.713c5ab7f7dbcffbf2a3.chunk.js +0 -2
- package/dist-prod/totop.713c5ab7f7dbcffbf2a3.chunk.js.map +0 -1
- package/dist-prod/upload.0638581e551ed9afaba2.chunk.js +0 -2
- package/dist-prod/upload.0638581e551ed9afaba2.chunk.js.map +0 -1
- package/postcss.config.js +0 -5
- package/src/components/Indicator/Indicator.tsx +0 -67
- package/src/components/Indicator/Indicator.vue +0 -82
- package/src/components/Indicator/index.ts +0 -111
- package/src/components/Indicator/types.ts +0 -15
- package/src/components/Text/index.ts +0 -14
- package/src/components/Text/textBar.tsx +0 -104
- package/src/components/Text/types.ts +0 -13
- package/src/components/actionSheet/actionSheet.d.ts +0 -16
- package/src/components/actionSheet/actionSheet.tsx +0 -86
- package/src/components/actionSheet/index.ts +0 -6
- package/src/components/actionSheet/types.ts +0 -10
- package/src/components/app.vue +0 -59
- package/src/components/badge/badge.tsx +0 -80
- package/src/components/badge/index.ts +0 -12
- package/src/components/badge/types.ts +0 -8
- package/src/components/button/button.tsx +0 -105
- package/src/components/button/index.ts +0 -13
- package/src/components/button/types.ts +0 -13
- package/src/components/card/card.d.ts +0 -16
- package/src/components/card/card.tsx +0 -38
- package/src/components/card/index.ts +0 -12
- package/src/components/card/types.ts +0 -3
- package/src/components/cell/cell.tsx +0 -89
- package/src/components/cell/index.ts +0 -12
- package/src/components/cell/types.ts +0 -8
- package/src/components/cellSwipe/cellSwipe.tsx +0 -188
- package/src/components/cellSwipe/index.ts +0 -13
- package/src/components/cellSwipe/types.ts +0 -17
- package/src/components/checkBox/checkbox-group.tsx +0 -75
- package/src/components/checkBox/checkbox.tsx +0 -107
- package/src/components/checkBox/index.ts +0 -29
- package/src/components/checkBox/types.ts +0 -32
- package/src/components/header/header.tsx +0 -119
- package/src/components/header/index.ts +0 -13
- package/src/components/header/types.ts +0 -7
- package/src/components/loadMore/index.ts +0 -14
- package/src/components/loadMore/loadMore.tsx +0 -265
- package/src/components/loadMore/types.ts +0 -26
- package/src/components/message/confirm.ts +0 -104
- package/src/components/message/index.ts +0 -113
- package/src/components/message/message.tsx +0 -100
- package/src/components/message/messageGroup.tsx +0 -59
- package/src/components/message/types.ts +0 -48
- package/src/components/modal/confirm.ts +0 -123
- package/src/components/modal/index.ts +0 -68
- package/src/components/modal/modal.tsx +0 -248
- package/src/components/modal/types.ts +0 -51
- package/src/components/number/Number.tsx +0 -143
- package/src/components/number/index.ts +0 -10
- package/src/components/number/types.ts +0 -13
- package/src/components/picker/area-picker/area-picker.vue +0 -230
- package/src/components/picker/area-picker/props.js +0 -17
- package/src/components/picker/date-picker/date-picker.vue +0 -191
- package/src/components/picker/date-picker/props.js +0 -24
- package/src/components/picker/index.ts +0 -12
- package/src/components/picker/normal-picker/normal-picker.vue +0 -120
- package/src/components/picker/normal-picker/props.js +0 -20
- package/src/components/picker/picker-slot.vue +0 -217
- package/src/components/picker/picker.tsx +0 -112
- package/src/components/picker/types.ts +0 -17
- package/src/components/popup/index.ts +0 -12
- package/src/components/popup/popup.d.ts +0 -16
- package/src/components/popup/popup.tsx +0 -68
- package/src/components/popup/types.ts +0 -9
- package/src/components/progress/index.ts +0 -12
- package/src/components/progress/progress.tsx +0 -81
- package/src/components/progress/types.ts +0 -9
- package/src/components/prompt/confirm.ts +0 -104
- package/src/components/prompt/index.ts +0 -50
- package/src/components/prompt/prompt.tsx +0 -161
- package/src/components/prompt/types.ts +0 -45
- package/src/components/radioBox/index.ts +0 -34
- package/src/components/radioBox/radiobox-group.tsx +0 -66
- package/src/components/radioBox/radiobox-group1.vue +0 -66
- package/src/components/radioBox/radiobox.tsx +0 -115
- package/src/components/radioBox/radiobox1.vue +0 -89
- package/src/components/radioBox/types.ts +0 -24
- package/src/components/rater/index.ts +0 -12
- package/src/components/rater/rater.d.ts +0 -16
- package/src/components/rater/raters.tsx +0 -101
- package/src/components/rater/types.ts +0 -10
- package/src/components/slideBar/index.ts +0 -13
- package/src/components/slideBar/slideBar.tsx +0 -288
- package/src/components/slideBar/types.ts +0 -20
- package/src/components/spinner/behavior/blade.vue +0 -42
- package/src/components/spinner/behavior/double-bounce.vue +0 -38
- package/src/components/spinner/behavior/fading-circle.vue +0 -55
- package/src/components/spinner/behavior/snake.vue +0 -41
- package/src/components/spinner/behavior/triple-bounce.vue +0 -52
- package/src/components/spinner/index.ts +0 -13
- package/src/components/spinner/props.js +0 -28
- package/src/components/spinner/spinner.tsx +0 -85
- package/src/components/spinner/types.ts +0 -20
- package/src/components/swipe/index.ts +0 -13
- package/src/components/swipe/swipe.tsx +0 -292
- package/src/components/swipe/types.ts +0 -21
- package/src/components/switchbar/index.ts +0 -13
- package/src/components/switchbar/switchbar.tsx +0 -58
- package/src/components/switchbar/types.ts +0 -6
- package/src/components/tab/index.ts +0 -12
- package/src/components/tab/tab.tsx +0 -71
- package/src/components/tab/types.ts +0 -15
- package/src/components/toTop/index.ts +0 -13
- package/src/components/toTop/toTop.tsx +0 -54
- package/src/components/toTop/types.ts +0 -7
- package/src/components/upload/index.ts +0 -13
- package/src/components/upload/types.ts +0 -9
- package/src/components/upload/upload.tsx +0 -180
- package/src/config/config.js +0 -16
- package/src/directives/clickoutside.js +0 -42
- package/src/directives/tranferDom.js +0 -66
- package/src/index.d.ts +0 -131
- package/src/index.ts +0 -136
- package/src/lib/MegaPixImage.js +0 -164
- package/src/lib/MegaPixImageOld.js +0 -153
- package/src/lib/exif-js.js +0 -235
- package/src/lib/exif.js +0 -789
- package/src/lib/lib.js +0 -22
- package/src/main.ts +0 -33
- package/src/mixin/emitter.js +0 -72
- package/src/mixin/input.js +0 -41
- package/src/router.ts +0 -36
- package/src/shims-vue.d.ts +0 -37
- package/src/styles/base/font.less +0 -99
- package/src/styles/base/reset.less +0 -135
- package/src/styles/base/variable.less +0 -108
- package/src/styles/components/actionSheet.less +0 -43
- package/src/styles/components/badge.less +0 -81
- package/src/styles/components/button.less +0 -124
- package/src/styles/components/card.less +0 -31
- package/src/styles/components/cell-swipe.less +0 -20
- package/src/styles/components/cell.less +0 -75
- package/src/styles/components/checkBox.less +0 -113
- package/src/styles/components/editor.less +0 -3
- package/src/styles/components/header.less +0 -72
- package/src/styles/components/indicator.less +0 -39
- package/src/styles/components/loadmore.less +0 -48
- package/src/styles/components/message.less +0 -57
- package/src/styles/components/modal.less +0 -84
- package/src/styles/components/number.less +0 -60
- package/src/styles/components/picker.less +0 -152
- package/src/styles/components/popup.less +0 -46
- package/src/styles/components/progress.less +0 -52
- package/src/styles/components/prompt.less +0 -37
- package/src/styles/components/radioBox.less +0 -142
- package/src/styles/components/rater.less +0 -16
- package/src/styles/components/slide-Bar.less +0 -149
- package/src/styles/components/spinner.less +0 -329
- package/src/styles/components/swipe.less +0 -125
- package/src/styles/components/switchBar.less +0 -88
- package/src/styles/components/tab.less +0 -71
- package/src/styles/components/text.less +0 -82
- package/src/styles/components/toTop.less +0 -28
- package/src/styles/components/upload.less +0 -23
- package/src/styles/index.less +0 -39
- package/src/styles/utils/1px.less +0 -206
- package/src/styles/utils/animation.less +0 -165
- package/src/styles/utils/nowrap.less +0 -19
- package/src/template/index.ejs +0 -40
- package/src/types/index.d.ts +0 -127
- package/src/types/js-shims.d.ts +0 -36
- package/src/utils/test.ts +0 -2
- package/src/utils/util.ts +0 -168
- package/src/utils/util1.js +0 -202
- package/src/vconsole-resources.min.js +0 -6
- package/src/vconsole-sources.min.js +0 -6
- package/src/vconsole.min.js +0 -7
- package/src/views/ActionSheet.vue +0 -46
- package/src/views/Badge/Badge.less +0 -12
- package/src/views/Badge/Badge.tsx +0 -23
- package/src/views/Badge.vue +0 -53
- package/src/views/Button.vue +0 -69
- package/src/views/Card.vue +0 -89
- package/src/views/Cell.vue +0 -31
- package/src/views/CellSwipe.vue +0 -80
- package/src/views/CheckBox.vue +0 -78
- package/src/views/Header.vue +0 -71
- package/src/views/Indicator.vue +0 -82
- package/src/views/LoadMore.vue +0 -76
- package/src/views/Message.vue +0 -61
- package/src/views/Modal.vue +0 -69
- package/src/views/Picker.vue +0 -142
- package/src/views/Popup.vue +0 -103
- package/src/views/Progress.vue +0 -49
- package/src/views/Prompt.vue +0 -43
- package/src/views/RadioBox.vue +0 -70
- package/src/views/Rater.vue +0 -53
- package/src/views/SlideBar.vue +0 -62
- package/src/views/Spinner.vue +0 -27
- package/src/views/Swipe.vue +0 -59
- package/src/views/SwitchBar.vue +0 -49
- package/src/views/Tab.vue +0 -55
- package/src/views/Text.vue +0 -97
- package/src/views/ToTop.vue +0 -31
- package/src/views/Upload.vue +0 -65
- package/src/views/guide.vue +0 -164
- package/src/views/index.vue +0 -554
- package/tsconfig.build.json +0 -31
- package/tsconfig.json +0 -41
- package/webpack.base.config.js +0 -85
- package/webpack.dev.config.js +0 -43
- package/webpack.dist.dev.config.js +0 -76
- package/webpack.dist.prod.config.js +0 -90
- package/webpack.prod.config.js +0 -52
package/tsconfig.build.json
DELETED
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
// "extends": "./tsconfig.json",
|
|
3
|
-
"compilerOptions": {
|
|
4
|
-
"declaration": true, // 生成类型声明
|
|
5
|
-
"declarationMap": true, // 可选,生成 d.ts.map
|
|
6
|
-
"emitDeclarationOnly": true, // 只生成类型声明,不生成 js
|
|
7
|
-
"declarationDir": "dist/types", // 类型输出目录
|
|
8
|
-
"outDir": "dist/types",
|
|
9
|
-
"rootDir": "src",
|
|
10
|
-
"jsx": "preserve",
|
|
11
|
-
"strict": true,
|
|
12
|
-
"skipLibCheck": true,
|
|
13
|
-
"moduleResolution": "node",
|
|
14
|
-
"allowJs": true
|
|
15
|
-
},
|
|
16
|
-
"include": [
|
|
17
|
-
// "src/components/**/*.{ts,tsx,vue}", // 组件源代码
|
|
18
|
-
// "src/components/badge/*.tsx",
|
|
19
|
-
// "src/components/badge/*.ts",
|
|
20
|
-
"src/shims-vue.d.ts",
|
|
21
|
-
// "src/types/**/*.d.ts",
|
|
22
|
-
"src/index.d.ts",
|
|
23
|
-
"src/types/js-shims.d.ts",
|
|
24
|
-
// "src/types/index.d.ts" // 存放 BadgeProps 等类型
|
|
25
|
-
],
|
|
26
|
-
"exclude": [
|
|
27
|
-
"node_modules",
|
|
28
|
-
"dist",
|
|
29
|
-
"src/views" // demo 目录不打包到 types
|
|
30
|
-
]
|
|
31
|
-
}
|
package/tsconfig.json
DELETED
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"compilerOptions": {
|
|
3
|
-
"target": "ES2018",
|
|
4
|
-
"module": "ESNext",
|
|
5
|
-
"moduleResolution": "Node",
|
|
6
|
-
|
|
7
|
-
"strict": true,
|
|
8
|
-
"jsx": "preserve",
|
|
9
|
-
|
|
10
|
-
"esModuleInterop": true,
|
|
11
|
-
"allowSyntheticDefaultImports": true,
|
|
12
|
-
"emitDeclarationOnly": true,
|
|
13
|
-
"allowJs": true,
|
|
14
|
-
"checkJs": false,
|
|
15
|
-
|
|
16
|
-
"skipLibCheck": true,
|
|
17
|
-
"sourceMap": true,
|
|
18
|
-
|
|
19
|
-
"baseUrl": ".",
|
|
20
|
-
"paths": {
|
|
21
|
-
"@/*": ["src/*"]
|
|
22
|
-
},
|
|
23
|
-
"rootDir": "src",
|
|
24
|
-
"declaration": true, // ✅ 生成 .d.ts 类型文件
|
|
25
|
-
"declarationDir": "dist/types", // ✅ 类型文件输出目录
|
|
26
|
-
"types": ["node", "vue"],
|
|
27
|
-
"noEmit": true
|
|
28
|
-
},
|
|
29
|
-
"include": [
|
|
30
|
-
"src/**/*.ts",
|
|
31
|
-
"src/**/*.d.ts",
|
|
32
|
-
"src/**/*.vue",
|
|
33
|
-
"src/**/*.tsx",
|
|
34
|
-
"src/index.d.ts"
|
|
35
|
-
],
|
|
36
|
-
"exclude": [
|
|
37
|
-
"node_modules",
|
|
38
|
-
"dist",
|
|
39
|
-
"dist-prod"
|
|
40
|
-
]
|
|
41
|
-
}
|
package/webpack.base.config.js
DELETED
|
@@ -1,85 +0,0 @@
|
|
|
1
|
-
/* eslint-disable */
|
|
2
|
-
const path = require('path')
|
|
3
|
-
const webpack = require('webpack')
|
|
4
|
-
const { VueLoaderPlugin } = require('vue-loader')
|
|
5
|
-
const ESLintPlugin = require('eslint-webpack-plugin')
|
|
6
|
-
|
|
7
|
-
module.exports = {
|
|
8
|
-
entry: {
|
|
9
|
-
main: path.resolve(__dirname, 'src/main.ts')
|
|
10
|
-
},
|
|
11
|
-
output: {
|
|
12
|
-
path: path.resolve(__dirname, 'dist'),
|
|
13
|
-
filename: '[name].[contenthash:8].js',
|
|
14
|
-
publicPath: '/'
|
|
15
|
-
},
|
|
16
|
-
resolve: {
|
|
17
|
-
extensions: ['.ts', '.js', '.tsx', '.vue', '.json'],
|
|
18
|
-
alias: {
|
|
19
|
-
vue$: 'vue/dist/vue.esm-bundler.js', // ✅ Vue 3 正确写法
|
|
20
|
-
'@': path.resolve(__dirname, 'src')
|
|
21
|
-
// 'dpzvc3-ui': path.resolve(__dirname, 'dist/dpzvc3.esm.js')
|
|
22
|
-
}
|
|
23
|
-
},
|
|
24
|
-
module: {
|
|
25
|
-
rules: [
|
|
26
|
-
{
|
|
27
|
-
test: /\.vue$/,
|
|
28
|
-
loader: 'vue-loader'
|
|
29
|
-
},
|
|
30
|
-
{
|
|
31
|
-
test: /\.tsx?$/,
|
|
32
|
-
use: [
|
|
33
|
-
{
|
|
34
|
-
loader: 'babel-loader'
|
|
35
|
-
},
|
|
36
|
-
{
|
|
37
|
-
loader: 'ts-loader',
|
|
38
|
-
options: {
|
|
39
|
-
appendTsSuffixTo: [/\.vue$/],
|
|
40
|
-
transpileOnly: true // 可选,提升开发编译速度
|
|
41
|
-
}
|
|
42
|
-
// options: {
|
|
43
|
-
// appendTsSuffixTo: [/\.vue$/] // 让 ts-loader 处理 .vue 中的 <script lang="ts">
|
|
44
|
-
// }
|
|
45
|
-
}],
|
|
46
|
-
exclude: /node_modules/
|
|
47
|
-
},
|
|
48
|
-
{
|
|
49
|
-
test: /\.js$/,
|
|
50
|
-
exclude: /node_modules/,
|
|
51
|
-
use: 'babel-loader'
|
|
52
|
-
},
|
|
53
|
-
{
|
|
54
|
-
test: /\.css$/,
|
|
55
|
-
use: ['vue-style-loader', 'css-loader', 'postcss-loader']
|
|
56
|
-
},
|
|
57
|
-
{
|
|
58
|
-
test: /\.less$/,
|
|
59
|
-
use: ['vue-style-loader', 'css-loader', 'postcss-loader', 'less-loader']
|
|
60
|
-
},
|
|
61
|
-
{
|
|
62
|
-
test: /\.(png|jpe?g|gif|svg|eot|ttf|woff2?)$/,
|
|
63
|
-
type: 'asset',
|
|
64
|
-
generator: {
|
|
65
|
-
filename: 'assets/[name].[hash:7][ext]'
|
|
66
|
-
}
|
|
67
|
-
}
|
|
68
|
-
]
|
|
69
|
-
},
|
|
70
|
-
plugins: [
|
|
71
|
-
new VueLoaderPlugin(),
|
|
72
|
-
new webpack.DefinePlugin({
|
|
73
|
-
__VUE_OPTIONS_API__: true,
|
|
74
|
-
__VUE_PROD_DEVTOOLS__: false
|
|
75
|
-
}),
|
|
76
|
-
new ESLintPlugin({
|
|
77
|
-
extensions: ['js', 'vue'],
|
|
78
|
-
emitWarning: true,
|
|
79
|
-
emitError: true,
|
|
80
|
-
failOnWarning: false,
|
|
81
|
-
failOnError: true
|
|
82
|
-
})
|
|
83
|
-
],
|
|
84
|
-
devtool: 'source-map'
|
|
85
|
-
}
|
package/webpack.dev.config.js
DELETED
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
/* eslint-disable */
|
|
2
|
-
const path = require('path')
|
|
3
|
-
const { merge } = require('webpack-merge')
|
|
4
|
-
const HtmlWebpackPlugin = require('html-webpack-plugin')
|
|
5
|
-
const baseConfig = require('./webpack.base.config.js')
|
|
6
|
-
|
|
7
|
-
module.exports = merge(baseConfig, {
|
|
8
|
-
mode: 'development',
|
|
9
|
-
|
|
10
|
-
entry: {
|
|
11
|
-
main: path.resolve(__dirname, 'src/main.ts')
|
|
12
|
-
},
|
|
13
|
-
|
|
14
|
-
output: {
|
|
15
|
-
filename: '[name].js',
|
|
16
|
-
chunkFilename: '[name].chunk.js',
|
|
17
|
-
publicPath: '/'
|
|
18
|
-
},
|
|
19
|
-
|
|
20
|
-
devtool: 'eval-cheap-module-source-map',
|
|
21
|
-
|
|
22
|
-
devServer: {
|
|
23
|
-
static: { directory: path.resolve(__dirname, 'dist-dev') },
|
|
24
|
-
compress: true,
|
|
25
|
-
hot: true,
|
|
26
|
-
historyApiFallback: true,
|
|
27
|
-
port: 3000,
|
|
28
|
-
client: {
|
|
29
|
-
overlay: {
|
|
30
|
-
warnings: false,
|
|
31
|
-
errors: true
|
|
32
|
-
}
|
|
33
|
-
}
|
|
34
|
-
},
|
|
35
|
-
|
|
36
|
-
plugins: [
|
|
37
|
-
new HtmlWebpackPlugin({
|
|
38
|
-
template: path.resolve(__dirname, 'src/template/index.ejs'),
|
|
39
|
-
inject: true,
|
|
40
|
-
filename: 'index.html'
|
|
41
|
-
})
|
|
42
|
-
]
|
|
43
|
-
})
|
|
@@ -1,76 +0,0 @@
|
|
|
1
|
-
/* eslint-disable */
|
|
2
|
-
const path = require('path')
|
|
3
|
-
const webpack = require('webpack')
|
|
4
|
-
const { merge } = require('webpack-merge')
|
|
5
|
-
const webpackBaseConfig = require('./webpack.base.config.js')
|
|
6
|
-
|
|
7
|
-
process.env.NODE_ENV = 'production'
|
|
8
|
-
|
|
9
|
-
module.exports = [merge(webpackBaseConfig, {
|
|
10
|
-
mode: 'production',
|
|
11
|
-
|
|
12
|
-
entry: {
|
|
13
|
-
main: path.resolve(__dirname, './src/index.ts')
|
|
14
|
-
},
|
|
15
|
-
|
|
16
|
-
output: {
|
|
17
|
-
path: path.resolve(__dirname, './dist'),
|
|
18
|
-
publicPath: '/dist/',
|
|
19
|
-
filename: 'dpzvc3.js',
|
|
20
|
-
library: 'dpzvc3',
|
|
21
|
-
libraryTarget: 'umd',
|
|
22
|
-
umdNamedDefine: true,
|
|
23
|
-
clean: false // webpack5 新增,每次构建清理旧文件
|
|
24
|
-
},
|
|
25
|
-
|
|
26
|
-
externals: {
|
|
27
|
-
vue: 'vue'
|
|
28
|
-
},
|
|
29
|
-
|
|
30
|
-
plugins: [
|
|
31
|
-
new webpack.DefinePlugin({
|
|
32
|
-
'process.env.NODE_ENV': JSON.stringify('production')
|
|
33
|
-
})
|
|
34
|
-
],
|
|
35
|
-
|
|
36
|
-
// Webpack 5 建议禁用多余 optimization,因为是库打包
|
|
37
|
-
optimization: {
|
|
38
|
-
minimize: false // 开发库打包通常不压缩
|
|
39
|
-
}
|
|
40
|
-
}),
|
|
41
|
-
merge(webpackBaseConfig, {
|
|
42
|
-
mode: 'production',
|
|
43
|
-
|
|
44
|
-
entry: {
|
|
45
|
-
main: path.resolve(__dirname, './src/index.ts')
|
|
46
|
-
},
|
|
47
|
-
|
|
48
|
-
output: {
|
|
49
|
-
path: path.resolve(__dirname, './dist'),
|
|
50
|
-
filename: 'dpzvc3.esm.js', // 改名,标识 ESM
|
|
51
|
-
library: {
|
|
52
|
-
type: 'module' // ✅ 核心改动
|
|
53
|
-
},
|
|
54
|
-
clean: false
|
|
55
|
-
},
|
|
56
|
-
|
|
57
|
-
experiments: {
|
|
58
|
-
outputModule: true // ✅ 必须
|
|
59
|
-
},
|
|
60
|
-
|
|
61
|
-
externals: {
|
|
62
|
-
vue: 'vue'
|
|
63
|
-
|
|
64
|
-
},
|
|
65
|
-
|
|
66
|
-
plugins: [
|
|
67
|
-
new webpack.DefinePlugin({
|
|
68
|
-
'process.env.NODE_ENV': JSON.stringify('production')
|
|
69
|
-
})
|
|
70
|
-
],
|
|
71
|
-
|
|
72
|
-
optimization: {
|
|
73
|
-
concatenateModules: false,
|
|
74
|
-
minimize: false
|
|
75
|
-
}
|
|
76
|
-
})]
|
|
@@ -1,90 +0,0 @@
|
|
|
1
|
-
/* eslint-disable */
|
|
2
|
-
const path = require('path')
|
|
3
|
-
const webpack = require('webpack')
|
|
4
|
-
const TerserPlugin = require('terser-webpack-plugin')
|
|
5
|
-
const { merge } = require('webpack-merge')
|
|
6
|
-
const webpackBaseConfig = require('./webpack.base.config.js')
|
|
7
|
-
|
|
8
|
-
process.env.NODE_ENV = 'production'
|
|
9
|
-
|
|
10
|
-
module.exports = [
|
|
11
|
-
// -------- UMD 输出 --------
|
|
12
|
-
merge(webpackBaseConfig, {
|
|
13
|
-
mode: 'production',
|
|
14
|
-
entry: {
|
|
15
|
-
main: path.resolve(__dirname, './src/index.ts')
|
|
16
|
-
},
|
|
17
|
-
output: {
|
|
18
|
-
path: path.resolve(__dirname, './dist'),
|
|
19
|
-
filename: 'dpzvc3.min.js',
|
|
20
|
-
library: 'dpzvc3',
|
|
21
|
-
libraryTarget: 'umd',
|
|
22
|
-
umdNamedDefine: true,
|
|
23
|
-
clean: false
|
|
24
|
-
},
|
|
25
|
-
externals: {
|
|
26
|
-
vue: 'vue'
|
|
27
|
-
|
|
28
|
-
},
|
|
29
|
-
optimization: {
|
|
30
|
-
minimize: true,
|
|
31
|
-
minimizer: [
|
|
32
|
-
new TerserPlugin({
|
|
33
|
-
terserOptions: {
|
|
34
|
-
compress: { drop_console: true, drop_debugger: true },
|
|
35
|
-
output: { comments: false }
|
|
36
|
-
},
|
|
37
|
-
extractComments: false
|
|
38
|
-
})
|
|
39
|
-
]
|
|
40
|
-
},
|
|
41
|
-
plugins: [
|
|
42
|
-
new webpack.DefinePlugin({
|
|
43
|
-
'process.env.NODE_ENV': JSON.stringify('production')
|
|
44
|
-
})
|
|
45
|
-
]
|
|
46
|
-
}),
|
|
47
|
-
merge(webpackBaseConfig, {
|
|
48
|
-
mode: 'production',
|
|
49
|
-
|
|
50
|
-
entry: {
|
|
51
|
-
main: path.resolve(__dirname, './src/index.ts')
|
|
52
|
-
},
|
|
53
|
-
|
|
54
|
-
output: {
|
|
55
|
-
path: path.resolve(__dirname, './dist'),
|
|
56
|
-
filename: 'dpzvc3.esm.min.js', // ESM 文件
|
|
57
|
-
library: {
|
|
58
|
-
type: 'module' // 核心 ESM 输出
|
|
59
|
-
},
|
|
60
|
-
clean: false
|
|
61
|
-
},
|
|
62
|
-
|
|
63
|
-
experiments: {
|
|
64
|
-
outputModule: true
|
|
65
|
-
},
|
|
66
|
-
|
|
67
|
-
externals: {
|
|
68
|
-
vue: 'vue'
|
|
69
|
-
},
|
|
70
|
-
|
|
71
|
-
optimization: {
|
|
72
|
-
concatenateModules: false,
|
|
73
|
-
minimize: true,
|
|
74
|
-
minimizer: [
|
|
75
|
-
new TerserPlugin({
|
|
76
|
-
terserOptions: {
|
|
77
|
-
compress: { drop_console: true, drop_debugger: true },
|
|
78
|
-
output: { comments: false }
|
|
79
|
-
},
|
|
80
|
-
extractComments: false
|
|
81
|
-
})
|
|
82
|
-
]
|
|
83
|
-
},
|
|
84
|
-
|
|
85
|
-
plugins: [
|
|
86
|
-
new webpack.DefinePlugin({
|
|
87
|
-
'process.env.NODE_ENV': JSON.stringify('production')
|
|
88
|
-
})
|
|
89
|
-
]
|
|
90
|
-
})]
|
package/webpack.prod.config.js
DELETED
|
@@ -1,52 +0,0 @@
|
|
|
1
|
-
/* eslint-disable */
|
|
2
|
-
const path = require('path')
|
|
3
|
-
const { merge } = require('webpack-merge')
|
|
4
|
-
const webpack = require('webpack')
|
|
5
|
-
const HtmlWebpackPlugin = require('html-webpack-plugin')
|
|
6
|
-
const TerserPlugin = require('terser-webpack-plugin')
|
|
7
|
-
const baseConfig = require('./webpack.base.config.js')
|
|
8
|
-
|
|
9
|
-
process.env.NODE_ENV = 'production'
|
|
10
|
-
|
|
11
|
-
module.exports = merge(baseConfig, {
|
|
12
|
-
mode: 'production',
|
|
13
|
-
entry: {
|
|
14
|
-
main: './src/main.ts'
|
|
15
|
-
},
|
|
16
|
-
output: {
|
|
17
|
-
path: path.resolve(__dirname, 'dist-prod'),
|
|
18
|
-
filename: '[name].[contenthash].js',
|
|
19
|
-
chunkFilename: '[name].[contenthash].chunk.js',
|
|
20
|
-
publicPath: '',
|
|
21
|
-
clean: true
|
|
22
|
-
},
|
|
23
|
-
optimization: {
|
|
24
|
-
minimize: true,
|
|
25
|
-
minimizer: [
|
|
26
|
-
new TerserPlugin({
|
|
27
|
-
terserOptions: {
|
|
28
|
-
compress: { drop_console: true, drop_debugger: true }
|
|
29
|
-
}
|
|
30
|
-
})
|
|
31
|
-
],
|
|
32
|
-
splitChunks: {
|
|
33
|
-
chunks: 'all'
|
|
34
|
-
}
|
|
35
|
-
},
|
|
36
|
-
plugins: [
|
|
37
|
-
new webpack.DefinePlugin({
|
|
38
|
-
'process.env.NODE_ENV': JSON.stringify('production'),
|
|
39
|
-
__VUE_OPTIONS_API__: true,
|
|
40
|
-
__VUE_PROD_DEVTOOLS__: false
|
|
41
|
-
}),
|
|
42
|
-
new HtmlWebpackPlugin({
|
|
43
|
-
template: './src/template/index.ejs',
|
|
44
|
-
filename: 'index.html',
|
|
45
|
-
inject: true,
|
|
46
|
-
minify: {
|
|
47
|
-
removeComments: true,
|
|
48
|
-
collapseWhitespace: true
|
|
49
|
-
}
|
|
50
|
-
})
|
|
51
|
-
]
|
|
52
|
-
})
|