forked from geekskai/vue3-jd-h5
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
将之前vant的版本跟新到2.2.1
- Loading branch information
Showing
7 changed files
with
15 additions
and
185 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -29,6 +29,8 @@ | |
<script src="https://cdn.bootcss.com/axios/0.19.0/axios.js"></script> | ||
<script src="https://unpkg.com/vue-lazyload/vue-lazyload.js"></script> | ||
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/vue-awesome-swiper.min.js"></script> | ||
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/[email protected]/lib/index.css"> | ||
<script src="https://cdn.jsdelivr.net/npm/[email protected]/lib/vant.min.js"></script> | ||
<% } %> | ||
<title>链猫商城</title> | ||
</head> | ||
|
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -66,13 +66,6 @@ module.exports = { | |
.options({ | ||
symbolId: 'icon-[name]' | ||
}) | ||
config.module.rule('svg-inline-loade').test(/\.svg$/).use('svg-inline-loade').loader('svg-inline-loader') | ||
// 修改images loader 添加svg处理 | ||
const imagesRule = config.module.rule('images') | ||
imagesRule.exclude.add(path.resolve(__dirname, 'src/icons')) | ||
config.module | ||
.rule('images') | ||
.test(/\.(png|jpe?g|gif|svg)(\?.*)?$/) | ||
// 压缩代码 | ||
config.optimization.minimize(true) | ||
// 分割代码 | ||
|
@@ -104,7 +97,8 @@ module.exports = { | |
config.externals(externals) | ||
const cdn = { | ||
css: [ | ||
'https://cdnjs.cloudflare.com/ajax/libs/Swiper/4.0.7/css/swiper.min.css' | ||
'https://cdnjs.cloudflare.com/ajax/libs/Swiper/4.0.7/css/swiper.min.css', | ||
'https://cdn.jsdelivr.net/npm/[email protected]/lib/index.css' | ||
], | ||
js: [ | ||
// vue | ||
|
@@ -117,6 +111,8 @@ module.exports = { | |
'https://unpkg.com/[email protected]/dist/axios.min.js', | ||
// vue-lazyload | ||
'https://unpkg.com/vue-lazyload/vue-lazyload.js', | ||
// vant | ||
'https://cdn.jsdelivr.net/npm/[email protected]/lib/vant.min.js', | ||
// vue-awesome-swiper | ||
'https://cdn.jsdelivr.net/npm/[email protected]/dist/vue-awesome-swiper.min.js' | ||
] | ||
|