Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
saas_plus
/
dj-car-life-system
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit feef32c3
authored
Jul 28, 2022
by
张立顺
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
组件使用cnd 导入
1 parent
9a6954d2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
30 additions
and
20 deletions
public/account/hetong.png
vue.config.js
public/account/hetong.png
View file @
feef32c
307 KB
|
W:
|
H:
96.5 KB
|
W:
|
H:
2-up
Swipe
Onion skin
vue.config.js
View file @
feef32c
...
...
@@ -44,7 +44,8 @@ const CDN_DOMAIN = 'https://img02.glsx.com.cn/dj-carlife-web'
const
cdn
=
{
css
:
[
// `${CDN_DOMAIN}/element-ui/2.15.0/theme-chalk/index.css`,
`
${
CDN_DOMAIN
}
/nprogress.min.css`
`
${
CDN_DOMAIN
}
/nprogress.min.css`
,
`https://unpkg.com/element-ui/lib/theme-chalk/index.css`
],
js
:
[
`
${
CDN_DOMAIN
}
/vue.min.js`
,
...
...
@@ -56,8 +57,10 @@ const cdn = {
`
${
CDN_DOMAIN
}
/echarts.min.js`
,
`
${
CDN_DOMAIN
}
/lodash.min.js`
,
`
${
CDN_DOMAIN
}
/qs.min.js`
,
`
${
CDN_DOMAIN
}
/ua-parser.min.js`
// `${CDN_DOMAIN}/element-ui/2.15.0/index.js`,
`
${
CDN_DOMAIN
}
/ua-parser.min.js`
,
`
${
CDN_DOMAIN
}
/element-ui/2.15.0/index.js`
,
`https://cdn.bootcdn.net/ajax/libs/html2canvas/1.4.1/html2canvas.min.js`
,
`https://unpkg.com/element-ui/lib/index.js`
// `${CDN_DOMAIN}/core-js/2.6.9/core.min.js`,
// `${CDN_DOMAIN}/vue-i18n/8.14.0/vue-i18n.esm.js`,
]
...
...
@@ -81,24 +84,31 @@ module.exports = {
}
},
configureWebpack
:
config
=>
{
if
(
isDev
)
{
config
.
externals
=
{
vue
:
'Vue'
,
'vue-router'
:
'VueRouter'
,
vuex
:
'Vuex'
,
axios
:
'axios'
,
'js-cookie'
:
'Cookies'
,
nprogress
:
'NProgress'
,
echarts
:
'echarts'
,
lodash
:
'_'
,
'ua-parser-js'
:
'UAParser'
,
qs
:
'Qs'
// 'element-ui': 'ELEMENT',
// 'vue-i18n':'vue-i18n',
// 'better-scroll': 'BScroll',
// 'core-js': 'core-js'
}
// 先取消来调试
// if (isDev) {
config
.
externals
=
{
vue
:
'Vue'
,
'vue-router'
:
'VueRouter'
,
vuex
:
'Vuex'
,
axios
:
'axios'
,
'js-cookie'
:
'Cookies'
,
nprogress
:
'NProgress'
,
echarts
:
'echarts'
,
lodash
:
'_'
,
'ua-parser-js'
:
'UAParser'
,
qs
:
'Qs'
,
html2canvas
:
'html2canvas'
,
'element-ui'
:
'ELEMENT'
// 'vue-i18n':'vue-i18n',
// 'better-scroll': 'BScroll',
// 'core-js': 'core-js'
}
// }
// 通过 html-webpack-plugin 将 cdn 注入到 index.html 之中
// config.plugin('html').tap(args => {
// args[0].cdn = cdn
// return args
// })
// 非开发环境
if
(
isDev
)
{
...
...
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment