hd-idevvue3 3.0.5 → 3.0.8
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/dist/static/css/index-DRHIlcVU.css +1 -0
- package/dist/static/js/index-DbUA6jg0.js +184 -0
- package/dist/static/js/index-Dl4O91nB.js +73768 -0
- package/package.json +16 -16
- package/.env.development +0 -5
- package/.env.production +0 -5
- package/.eslintrc.js +0 -151
- package/dist/assets/index.431f21ca.css +0 -1
- package/dist/hd-idevvue3.mjs +0 -45878
- package/dist/hd-idevvue3.umd.js +0 -153
- package/index.html +0 -18
- package/npminstall-debug.log +0 -200
- package/pnpm-lock.yaml +0 -2813
- package/src/App.vue +0 -11
- package/src/assets/sound/notify.wav +0 -0
- package/src/demo/demo.vue +0 -42
- package/src/demo/dropdemo.vue +0 -42
- package/src/demo/extsets.vue +0 -208
- package/src/demo/formedit.vue +0 -157
- package/src/demo/hightquery.vue +0 -366
- package/src/demo/inlineedit.vue +0 -182
- package/src/demo/selfdrop.vue +0 -58
- package/src/demo//350/241/214/345/206/205/347/272/247/350/201/224.txt +0 -2
- package/src/directive/el-dragDialog/drag.js +0 -124
- package/src/directive/el-dragDialog/index.js +0 -13
- package/src/errorLog.js +0 -16
- package/src/hdcom/BigGrid.js +0 -179
- package/src/hdcom/BillShow.vue +0 -111
- package/src/hdcom/BillUpload.vue +0 -311
- package/src/hdcom/BtnRight.vue +0 -101
- package/src/hdcom/ErrHint.vue +0 -42
- package/src/hdcom/ExtendColumn.vue +0 -115
- package/src/hdcom/ExtendCommon.js +0 -40
- package/src/hdcom/ExtendForm.vue +0 -141
- package/src/hdcom/FacePicUpload.vue +0 -80
- package/src/hdcom/FaceRecTest.vue +0 -114
- package/src/hdcom/GridChart.vue +0 -207
- package/src/hdcom/GridExField.vue +0 -375
- package/src/hdcom/GridShow.vue +0 -288
- package/src/hdcom/HdAside.vue +0 -225
- package/src/hdcom/HdBtn.vue +0 -125
- package/src/hdcom/HdButton.vue +0 -161
- package/src/hdcom/HdComFaceRec.vue +0 -106
- package/src/hdcom/HdComGrid.vue +0 -876
- package/src/hdcom/HdComQuery.vue +0 -362
- package/src/hdcom/HdComQueryDetail.vue +0 -205
- package/src/hdcom/HdComSortDetail.vue +0 -161
- package/src/hdcom/HdDatePicker.vue +0 -94
- package/src/hdcom/HdDialog.vue +0 -81
- package/src/hdcom/HdDrop.vue +0 -188
- package/src/hdcom/HdFileUpload.vue +0 -167
- package/src/hdcom/HdFilterBox.vue +0 -90
- package/src/hdcom/HdFooter.vue +0 -182
- package/src/hdcom/HdForm.vue +0 -351
- package/src/hdcom/HdFormBtn.vue +0 -131
- package/src/hdcom/HdFormItem.vue +0 -39
- package/src/hdcom/HdGctosGrid +0 -0
- package/src/hdcom/HdGrid.vue +0 -1022
- package/src/hdcom/HdGridEditBtn.vue +0 -58
- package/src/hdcom/HdGridExt.js +0 -250
- package/src/hdcom/HdGridSel.vue +0 -257
- package/src/hdcom/HdHeader.vue +0 -180
- package/src/hdcom/HdHotKey.vue +0 -84
- package/src/hdcom/HdInputHint.vue +0 -53
- package/src/hdcom/HdMain.vue +0 -41
- package/src/hdcom/HdMessage.vue +0 -201
- package/src/hdcom/HdNum.vue +0 -79
- package/src/hdcom/HdPopSel.vue +0 -80
- package/src/hdcom/HdRightMenu.vue +0 -63
- package/src/hdcom/HdSel/SelGridFieldcod.vue +0 -54
- package/src/hdcom/HdTableColumn.vue +0 -381
- package/src/hdcom/HdTempSave.vue +0 -162
- package/src/hdcom/HdTree.vue +0 -103
- package/src/hdcom/HdTreeTable/eval.js +0 -39
- package/src/hdcom/HdTreeTable/index.vue +0 -229
- package/src/hdcom/ImportExcel.vue +0 -178
- package/src/hdcom/index.js +0 -75
- package/src/idev.common.js +0 -79
- package/src/index.js +0 -11
- package/src/utils/HdQuery.js +0 -65
- package/src/utils/comutils.js +0 -120
- package/src/utils/gogocodeTransfer.js +0 -59
- package/src/utils/utils.js +0 -116
- package/src/vendor/Blob.js +0 -187
- package/src/vendor/Export2Excel.js +0 -231
- package/src/vendor/Export2Zip.js +0 -25
- package/src/views/layout/AppMain.vue +0 -34
- package/src/views/layout/HdLayout.vue +0 -90
- package/src/views/layout/header/ElasticSearch.vue +0 -262
- package/src/views/layout/header/HZRecorder.js +0 -259
- package/src/views/layout/header/HeaderSearch.vue +0 -218
- package/src/views/layout/header/Levelbar.vue +0 -55
- package/src/views/layout/header/MainHeader.vue +0 -315
- package/src/views/layout/header/Navbar.vue +0 -101
- package/src/views/layout/header/ScrollPane.vue +0 -103
- package/src/views/layout/header/TagsView.vue +0 -215
- package/src/views/layout/header/VocRec.vue +0 -105
- package/src/views/layout/header/changepswform.vue +0 -130
- package/src/views/layout/index.js +0 -10
- package/src/views/layout/menu/Hamburger.vue +0 -63
- package/src/views/layout/menu/HdMenu.vue +0 -204
- package/src/views/layout/menu/css/menu.css +0 -288
- package/src/views/layout/menu/index.vue +0 -27
- package/src/views/privilege/commsg/commsg.vue +0 -152
- package/src/views/privilege/commsg/commsgOrgn.vue +0 -51
- package/src/views/privilege/commsg/commsgRole.vue +0 -220
- package/src/views/privilege/commsg/commsgform.vue +0 -184
- package/src/views/privilege/commsg/commsgiframe.vue +0 -40
- package/src/views/privilege/commsg/commsgto.vue +0 -199
- package/src/views/privilege/commsg/commsgtoform.vue +0 -114
- package/src/views/privilege/commsg/commsgtrans.vue +0 -227
- package/src/views/privilege/exfield/comexcolumn.vue +0 -161
- package/src/views/privilege/exfield/comexcolumnform.vue +0 -128
- package/src/views/privilege/exfield/comexfield.vue +0 -29
- package/src/views/privilege/exfield/comexfieldform.vue +0 -112
- package/src/views/privilege/exfield/comexfieldsub.vue +0 -163
- package/src/views/privilege/index.js +0 -41
- package/src/views/privilege/menu/comMenu.vue +0 -49
- package/src/views/privilege/menu/menu.vue +0 -250
- package/src/views/privilege/menu/menuinfo.vue +0 -63
- package/src/views/privilege/menu/rolelist.vue +0 -92
- package/src/views/privilege/menu/userlist.vue +0 -92
- package/src/views/privilege/mobile/authmobileupdate.vue +0 -145
- package/src/views/privilege/mobile/authmobileupdateform.vue +0 -120
- package/src/views/privilege/orgDept/authOrgn.vue +0 -188
- package/src/views/privilege/orgDept/authorgnform.vue +0 -157
- package/src/views/privilege/orgDept/orgDept.vue +0 -38
- package/src/views/privilege/orgDept/orgTree.vue +0 -99
- package/src/views/privilege/orgDept/orgnselect.vue +0 -155
- package/src/views/privilege/personDept/authuser.vue +0 -229
- package/src/views/privilege/personDept/authuserform.vue +0 -206
- package/src/views/privilege/personDept/facerec.vue +0 -162
- package/src/views/privilege/personDept/orgncascader.vue +0 -144
- package/src/views/privilege/personDept/personDept.vue +0 -33
- package/src/views/privilege/quartz/comquartzjob.vue +0 -150
- package/src/views/privilege/quartz/comquartzjobform.vue +0 -115
- package/src/views/privilege/quartz/comquartzlog.vue +0 -143
- package/src/views/privilege/role/btnRole.vue +0 -173
- package/src/views/privilege/role/menuRole.vue +0 -84
- package/src/views/privilege/role/orgnRole.vue +0 -78
- package/src/views/privilege/role/role.vue +0 -84
- package/src/views/privilege/role/rolelist.vue +0 -136
- package/src/views/privilege/role/roleselect.vue +0 -74
- package/src/views/privilege/search/comsearch.vue +0 -196
- package/src/views/privilege/search/menu.vue +0 -68
- package/src/views/privilege/syscode/syscode.vue +0 -191
- package/src/views/privilege/syscode/sysfield.vue +0 -119
- package/src/views/privilege/syscode/sysfieldframe.vue +0 -30
- package/src/views/privilege/syslog/menulog.vue +0 -68
- package/src/views/privilege/syslog/syslog.vue +0 -182
- package/src/views/privilege/syslog/syslogconfig.vue +0 -128
- package/src/views/privilege/syslog/syslogform.vue +0 -85
- package/src/views/privilege/syslog/syslogframe.vue +0 -26
- package/src/views/privilege/userRole/userRole.vue +0 -220
- package/vite.config.js +0 -103
|
@@ -1,220 +0,0 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<el-container>
|
|
3
|
-
<el-aside width="50%">
|
|
4
|
-
<hd-com-grid
|
|
5
|
-
:hdQuery="hdUserQuery"
|
|
6
|
-
@row-click="rowClick"
|
|
7
|
-
ckHide
|
|
8
|
-
ref="pergrid"
|
|
9
|
-
url="/webresources/login/privilege/AuthUser"
|
|
10
|
-
>
|
|
11
|
-
<div class="filter-container" slot="query">
|
|
12
|
-
<el-input
|
|
13
|
-
:placeholder="$t('姓名、账号')"
|
|
14
|
-
@keyup.enter.native="$refs.pergrid.doQuery()"
|
|
15
|
-
class="filter-item"
|
|
16
|
-
style="width: 180px"
|
|
17
|
-
v-model="hdUserQuery.query.name"
|
|
18
|
-
></el-input>
|
|
19
|
-
<orgnselect
|
|
20
|
-
:idVal.sync="hdUserQuery.query.orgnId"
|
|
21
|
-
:placeholder="$t('选择部门')"
|
|
22
|
-
:txtVal.sync="hdUserQuery.query.orgnName"
|
|
23
|
-
class="filter-item"
|
|
24
|
-
style="width: 150px; display: inline-block"
|
|
25
|
-
></orgnselect>
|
|
26
|
-
<roleselect
|
|
27
|
-
:idVal.sync="hdUserQuery.query.roleId"
|
|
28
|
-
:placeholder="$t('选择角色')"
|
|
29
|
-
:txtVal.sync="hdUserQuery.query.roleIdStr"
|
|
30
|
-
class="filter-item"
|
|
31
|
-
style="width: 150px; display: inline-block"
|
|
32
|
-
></roleselect>
|
|
33
|
-
<el-button
|
|
34
|
-
@click="$refs.pergrid.doQuery()"
|
|
35
|
-
class="filter-item"
|
|
36
|
-
keyType="query"
|
|
37
|
-
>{{ $t('搜索') }}</el-button
|
|
38
|
-
>
|
|
39
|
-
</div>
|
|
40
|
-
<el-table-column
|
|
41
|
-
align="center"
|
|
42
|
-
label="姓名"
|
|
43
|
-
prop="name"
|
|
44
|
-
sortable
|
|
45
|
-
width="120px"
|
|
46
|
-
>
|
|
47
|
-
</el-table-column>
|
|
48
|
-
<el-table-column
|
|
49
|
-
align="center"
|
|
50
|
-
label="账号"
|
|
51
|
-
prop="account"
|
|
52
|
-
sortable
|
|
53
|
-
width="120px"
|
|
54
|
-
>
|
|
55
|
-
</el-table-column>
|
|
56
|
-
<el-table-column
|
|
57
|
-
:input="require('../orgDept/orgnselect').default"
|
|
58
|
-
:inputFormat="(result, row) => row.orgnName"
|
|
59
|
-
align="center"
|
|
60
|
-
label="部门名称"
|
|
61
|
-
prop="orgnId"
|
|
62
|
-
sortable
|
|
63
|
-
width="120px"
|
|
64
|
-
>
|
|
65
|
-
</el-table-column>
|
|
66
|
-
</hd-com-grid>
|
|
67
|
-
</el-aside>
|
|
68
|
-
<el-main>
|
|
69
|
-
<hd-com-grid
|
|
70
|
-
:hdQuery="hdRoleQuery"
|
|
71
|
-
:summary-method="getSummaries"
|
|
72
|
-
ckHide
|
|
73
|
-
findUrl="/webresources/login/privilege/AuthRole/findRoleByUserId"
|
|
74
|
-
notInit
|
|
75
|
-
ref="rolegrid"
|
|
76
|
-
show-summary
|
|
77
|
-
url="/webresources/login/privilege/AuthRole/"
|
|
78
|
-
>
|
|
79
|
-
<el-table-column
|
|
80
|
-
align="center"
|
|
81
|
-
fixed="right"
|
|
82
|
-
label="授权"
|
|
83
|
-
prop="fix_btn"
|
|
84
|
-
width="90"
|
|
85
|
-
>
|
|
86
|
-
<template slot-scope="scope">
|
|
87
|
-
<el-switch
|
|
88
|
-
:active-value="true"
|
|
89
|
-
:inactive-value="false"
|
|
90
|
-
@change="updateUserRole(scope.row)"
|
|
91
|
-
v-model="scope.row.checked"
|
|
92
|
-
></el-switch>
|
|
93
|
-
</template>
|
|
94
|
-
</el-table-column>
|
|
95
|
-
<div class="filter-container" slot="query">
|
|
96
|
-
<el-input
|
|
97
|
-
:placeholder="$t('角色')"
|
|
98
|
-
@keyup.enter.native="$refs.rolegrid.doQuery()"
|
|
99
|
-
class="filter-item"
|
|
100
|
-
style="width: 180px"
|
|
101
|
-
v-model="hdRoleQuery.query.anyQuery"
|
|
102
|
-
></el-input>
|
|
103
|
-
<el-radio-group
|
|
104
|
-
@change="$refs.rolegrid.doQuery()"
|
|
105
|
-
class="filter-item"
|
|
106
|
-
size="mini"
|
|
107
|
-
v-model="hdRoleQuery.query.alreadyAuth"
|
|
108
|
-
>
|
|
109
|
-
<el-radio-button label="1">{{ $t('已授权') }}</el-radio-button>
|
|
110
|
-
<el-radio-button label="0">{{ $t('全部') }}</el-radio-button>
|
|
111
|
-
</el-radio-group>
|
|
112
|
-
<el-button
|
|
113
|
-
@click="$refs.rolegrid.doQuery()"
|
|
114
|
-
class="filter-item"
|
|
115
|
-
keyType="query"
|
|
116
|
-
>搜索</el-button
|
|
117
|
-
>
|
|
118
|
-
|
|
119
|
-
{{ $t('该账号已授权')
|
|
120
|
-
}}<span style="color: red; font-size: 18px">{{ roleAuthNum }}</span
|
|
121
|
-
>{{ $t('个角色') }}
|
|
122
|
-
</div>
|
|
123
|
-
<el-table-column
|
|
124
|
-
align="center"
|
|
125
|
-
label="角色"
|
|
126
|
-
prop="name"
|
|
127
|
-
sortable
|
|
128
|
-
width="120px"
|
|
129
|
-
></el-table-column>
|
|
130
|
-
<el-table-column
|
|
131
|
-
align="center"
|
|
132
|
-
label="描述"
|
|
133
|
-
prop="description"
|
|
134
|
-
sortable
|
|
135
|
-
width="120px"
|
|
136
|
-
></el-table-column>
|
|
137
|
-
</hd-com-grid>
|
|
138
|
-
</el-main>
|
|
139
|
-
</el-container>
|
|
140
|
-
</template>
|
|
141
|
-
|
|
142
|
-
<script>
|
|
143
|
-
import orgnselect from '../orgDept/orgnselect'
|
|
144
|
-
import roleselect from '../role/roleselect'
|
|
145
|
-
|
|
146
|
-
export default {
|
|
147
|
-
components: {
|
|
148
|
-
orgnselect,
|
|
149
|
-
roleselect,
|
|
150
|
-
},
|
|
151
|
-
data() {
|
|
152
|
-
return {
|
|
153
|
-
hdUserQuery: new HdQuery(this),
|
|
154
|
-
hdRoleQuery: new HdQuery(this, 100),
|
|
155
|
-
userId: '',
|
|
156
|
-
roleFindUrl: '',
|
|
157
|
-
roleAuthNum: 0, //已授权角色数
|
|
158
|
-
}
|
|
159
|
-
},
|
|
160
|
-
mounted() {
|
|
161
|
-
// this.doQuery()
|
|
162
|
-
},
|
|
163
|
-
methods: {
|
|
164
|
-
rowClick(row) {
|
|
165
|
-
// 显示loading框
|
|
166
|
-
this.userId = row.userId
|
|
167
|
-
this.hdRoleQuery.add('userId', row.userId)
|
|
168
|
-
this.findRoleAuthNum()
|
|
169
|
-
this.$refs.rolegrid.doQuery().then(() => {
|
|
170
|
-
//summary有时候显示不了,调用el-table的doLayout方法对el-table封装了2层,所以需要3个refs
|
|
171
|
-
this.$refs.rolegrid.$refs.hdgrid.$refs.ingrid.doLayout()
|
|
172
|
-
})
|
|
173
|
-
},
|
|
174
|
-
findRoleAuthNum() {
|
|
175
|
-
this.$http
|
|
176
|
-
.post(
|
|
177
|
-
'/webresources/login/privilege/AuthRole/findRoleAuthNum',
|
|
178
|
-
this.hdRoleQuery
|
|
179
|
-
)
|
|
180
|
-
.then((response) => {
|
|
181
|
-
this.roleAuthNum = response.data
|
|
182
|
-
})
|
|
183
|
-
},
|
|
184
|
-
updateUserRole(row) {
|
|
185
|
-
if (row.checked) {
|
|
186
|
-
this.$http
|
|
187
|
-
.get(
|
|
188
|
-
`/webresources/login/privilege/AuthRole/addRoleUser/${row.roleId}/${this.userId}`
|
|
189
|
-
)
|
|
190
|
-
.then((response) => {
|
|
191
|
-
this.roleAuthNum = this.roleAuthNum + 1
|
|
192
|
-
})
|
|
193
|
-
} else {
|
|
194
|
-
this.$http
|
|
195
|
-
.get(
|
|
196
|
-
`/webresources/login/privilege/AuthRole/removeRoleUser/${row.roleId}/${this.userId}`
|
|
197
|
-
)
|
|
198
|
-
.then((response) => {
|
|
199
|
-
this.roleAuthNum = this.roleAuthNum - 1
|
|
200
|
-
})
|
|
201
|
-
}
|
|
202
|
-
},
|
|
203
|
-
getSummaries(param) {
|
|
204
|
-
const { columns, data } = param
|
|
205
|
-
const sums = []
|
|
206
|
-
columns.forEach((column, index) => {
|
|
207
|
-
if (column.property == 'name') {
|
|
208
|
-
sums[index] = '已授权'
|
|
209
|
-
return
|
|
210
|
-
}
|
|
211
|
-
if (column.property == 'fix_btn') {
|
|
212
|
-
sums[index] = this.roleAuthNum
|
|
213
|
-
return
|
|
214
|
-
}
|
|
215
|
-
})
|
|
216
|
-
return sums
|
|
217
|
-
},
|
|
218
|
-
},
|
|
219
|
-
}
|
|
220
|
-
</script>
|
package/vite.config.js
DELETED
|
@@ -1,103 +0,0 @@
|
|
|
1
|
-
import { fileURLToPath, URL } from "node:url";
|
|
2
|
-
|
|
3
|
-
import { defineConfig } from "vite";
|
|
4
|
-
import vue from "@vitejs/plugin-vue";
|
|
5
|
-
import commonjs from "@rollup/plugin-commonjs";
|
|
6
|
-
import path from "path";
|
|
7
|
-
|
|
8
|
-
import requireTransform from "vite-plugin-require-transform";
|
|
9
|
-
|
|
10
|
-
import AutoImport from "unplugin-auto-import/vite";
|
|
11
|
-
import Icons from 'unplugin-icons/vite'
|
|
12
|
-
import Components from 'unplugin-vue-components/vite'
|
|
13
|
-
import { ElementPlusResolver } from 'unplugin-vue-components/resolvers'
|
|
14
|
-
|
|
15
|
-
import postcssImport from "postcss-import";
|
|
16
|
-
import autoprefixer from "autoprefixer";
|
|
17
|
-
|
|
18
|
-
// https://vitejs.dev/config/
|
|
19
|
-
export default defineConfig({
|
|
20
|
-
plugins: [
|
|
21
|
-
commonjs(),
|
|
22
|
-
vue(),
|
|
23
|
-
requireTransform({
|
|
24
|
-
fileRegex: /.js$|.vue$/,
|
|
25
|
-
}),
|
|
26
|
-
AutoImport({
|
|
27
|
-
imports: ["vue", "vue-router"],
|
|
28
|
-
}),
|
|
29
|
-
],
|
|
30
|
-
base:'./',
|
|
31
|
-
server: {
|
|
32
|
-
host: '0.0.0.0', // 指定服务器应该监听哪个 IP 地址,默认localhost,可设置为'0.0.0.0'或 true
|
|
33
|
-
open: true, // 开发服务器启动时,自动在浏览器中打开应用程序
|
|
34
|
-
strictPort: true,
|
|
35
|
-
hrm: {
|
|
36
|
-
clientPort: 5173,
|
|
37
|
-
},
|
|
38
|
-
},
|
|
39
|
-
resolve: {
|
|
40
|
-
alias: {
|
|
41
|
-
"@": path.resolve(__dirname, 'src'),
|
|
42
|
-
},
|
|
43
|
-
extensions: [".js", ".ts", ".vue", ".json"],
|
|
44
|
-
},
|
|
45
|
-
css: {
|
|
46
|
-
preprocessorOptions: {
|
|
47
|
-
scss: {
|
|
48
|
-
silenceDeprecations: ['legacy-js-api'] // 忽略警告
|
|
49
|
-
}
|
|
50
|
-
},
|
|
51
|
-
postcss: {
|
|
52
|
-
plugins: [
|
|
53
|
-
postcssImport,
|
|
54
|
-
autoprefixer({
|
|
55
|
-
// 自动添加前缀
|
|
56
|
-
overrideBrowserslist: [
|
|
57
|
-
"Android 4.1",
|
|
58
|
-
"iOS 7.1",
|
|
59
|
-
"Chrome > 31",
|
|
60
|
-
"ff > 31",
|
|
61
|
-
"ie >= 8",
|
|
62
|
-
//'last 2 versions', // 所有主流浏览器最近2个版本
|
|
63
|
-
],
|
|
64
|
-
grid: true,
|
|
65
|
-
}),
|
|
66
|
-
],
|
|
67
|
-
},
|
|
68
|
-
},
|
|
69
|
-
// 打包配置 npm run build
|
|
70
|
-
build: {
|
|
71
|
-
//指定输出路径
|
|
72
|
-
outDir: "dist",
|
|
73
|
-
//生成静态资源的存放路径
|
|
74
|
-
assetsDir: "assets",
|
|
75
|
-
//小于此阈值的导入或引用资源将内联为 base64 编码,以避免额外的 http 请求。设置为 0 可以完全禁用此项
|
|
76
|
-
assetsInlineLimit: 4096,
|
|
77
|
-
//启用/禁用 CSS 代码拆分
|
|
78
|
-
cssCodeSplit: true,
|
|
79
|
-
//构建后是否生成 source map 文件
|
|
80
|
-
sourcemap: false,
|
|
81
|
-
lib: {
|
|
82
|
-
entry: path.resolve(__dirname, 'src/index.js'), // 确保路径正确
|
|
83
|
-
name: "hd-idevvue3",
|
|
84
|
-
},
|
|
85
|
-
//自定义底层的 Rollup 打包配置
|
|
86
|
-
rollupOptions: {
|
|
87
|
-
input: {
|
|
88
|
-
//可以配置多个,表示多入口
|
|
89
|
-
index: path.resolve(__dirname, "src/index.js"),
|
|
90
|
-
// project:resolve(__dirname,"project.html")
|
|
91
|
-
},
|
|
92
|
-
output: {
|
|
93
|
-
// chunkFileNames:'static/js/[name]-[hash].js',
|
|
94
|
-
// entryFileNames:"static/js/[name]-[hash].js",
|
|
95
|
-
// assetFileNames:"static/[ext]/name-[hash].[ext]"
|
|
96
|
-
},
|
|
97
|
-
},
|
|
98
|
-
//默认情况下,若 outDir 在 root 目录下,则 Vite 会在构建时清空该目录。
|
|
99
|
-
emptyOutDir: true,
|
|
100
|
-
//chunk 大小警告的限制
|
|
101
|
-
chunkSizeWarningLimit: 500,
|
|
102
|
-
},
|
|
103
|
-
});
|