Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
saas
/
scrm-micro-settings
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 91373969
authored
Jan 11, 2023
by
前端
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
修改打包路径
1 parent
a3005b02
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
12 deletions
vue.config.js
vue.config.js
View file @
9137396
...
@@ -5,20 +5,18 @@ const publicPath = node_env ? `/child/${packageName}/` : '/'
...
@@ -5,20 +5,18 @@ const publicPath = node_env ? `/child/${packageName}/` : '/'
const
resolve
=
dir
=>
path
.
join
(
__dirname
,
dir
)
const
resolve
=
dir
=>
path
.
join
(
__dirname
,
dir
)
const
CDN_DOMAIN
=
'https://img02.glsx.com.cn/'
const
CDN_DOMAIN
=
'https://img02.glsx.com.cn/'
const
cdn
=
{
const
cdn
=
{
css
:
[
css
:
[
`
${
CDN_DOMAIN
}
ajax/libs/element-ui/2.11.1/theme-chalk/index.css`
],
`
${
CDN_DOMAIN
}
ajax/libs/element-ui/2.11.1/theme-chalk/index.css`
],
js
:
[
js
:
[
`
${
CDN_DOMAIN
}
ajax/libs/vue/2.6.11/vue.min.js`
,
`
${
CDN_DOMAIN
}
ajax/libs/vue/2.6.11/vue.min.js`
,
`
${
CDN_DOMAIN
}
ajax/libs/vue-router/3.2.0/vue-router.min.js`
,
`
${
CDN_DOMAIN
}
ajax/libs/vue-router/3.2.0/vue-router.min.js`
,
`
${
CDN_DOMAIN
}
ajax/libs/element-ui/2.11.1/index.js`
,
`
${
CDN_DOMAIN
}
ajax/libs/element-ui/2.11.1/index.js`
,
`
${
CDN_DOMAIN
}
ajax/libs/vuex/3.6.2/vuex.min.js`
,
`
${
CDN_DOMAIN
}
ajax/libs/vuex/3.6.2/vuex.min.js`
,
`
${
CDN_DOMAIN
}
ajax/libs/echarts/5.1.2/echarts.min.js`
,
`
${
CDN_DOMAIN
}
ajax/libs/echarts/5.1.2/echarts.min.js`
// 'https://webapi.amap.com/maps?v=1.3&key=bd290dc27d0945959280753215ddda71&plugin=AMap.Geocoder'
// 'https://webapi.amap.com/maps?v=1.3&key=bd290dc27d0945959280753215ddda71&plugin=AMap.Geocoder'
]
]
}
}
module
.
exports
=
{
module
.
exports
=
{
outputDir
:
`../dist/
${
packageName
}
`
,
outputDir
:
`dist
`
,
publicPath
,
publicPath
,
assetsDir
:
'static'
,
assetsDir
:
'static'
,
productionSourceMap
:
false
,
productionSourceMap
:
false
,
...
@@ -37,13 +35,13 @@ module.exports = {
...
@@ -37,13 +35,13 @@ module.exports = {
jsonpFunction
:
`webpackJsonp_
${
packageName
}
`
jsonpFunction
:
`webpackJsonp_
${
packageName
}
`
},
},
externals
:
{
externals
:
{
'vue'
:
'Vue'
,
vue
:
'Vue'
,
'element-ui'
:
'ELEMENT'
,
'element-ui'
:
'ELEMENT'
,
'vue-router'
:
'VueRouter'
,
'vue-router'
:
'VueRouter'
,
'vuex'
:
'Vuex'
,
vuex
:
'Vuex'
,
'axios'
:
'axios'
,
axios
:
'axios'
,
'echarts'
:
'echarts'
,
echarts
:
'echarts'
,
'AMap'
:
'AMap'
AMap
:
'AMap'
}
}
},
},
devServer
:
{
devServer
:
{
...
@@ -56,8 +54,7 @@ module.exports = {
...
@@ -56,8 +54,7 @@ module.exports = {
}
}
},
},
chainWebpack
:
config
=>
{
chainWebpack
:
config
=>
{
config
.
plugin
(
'html'
)
config
.
plugin
(
'html'
).
tap
(
args
=>
{
.
tap
(
args
=>
{
// args[0].minify.removeComments = false;
// args[0].minify.removeComments = false;
args
[
0
].
cdn
=
cdn
args
[
0
].
cdn
=
cdn
return
args
return
args
...
...
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