Toggle navigation
Toggle navigation
This project
Loading...
Sign in
Hooke
/
tswj
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Snippets
Network
Create a new issue
Builds
Commits
Issue Boards
Authored by
hookehuyr
2022-06-06 09:55:34 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
37f51f9e456af549a6122ca4183130e3639c45ff
37f51f9e
1 parent
bf85c71e
fix
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
7 deletions
vite.config.js
vite.config.js
View file @
37f51f9
...
...
@@ -25,13 +25,13 @@ export default ({ command, mode }) => {
vue
(),
styleImport
({
resolves
:
[
VantResolve
()],
libs
:
[
{
libraryName
:
'vant'
,
esModule
:
true
,
resolveStyle
:
name
=>
`../es/
${
name
}
/style`
}
]
//
libs: [
//
{
//
libraryName: 'vant',
//
esModule: true,
//
resolveStyle: name => `../es/${name}/style`
//
}
//
]
}),
// 按需引入 vant 位置报错问题
dynamicImport
(),
// 增强 Vite 内置的 dynamic import, 支持在 import() 中使用别名
// legacy({
...
...
Please
register
or
login
to post a comment