Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
dj-simple
/
equity
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 fab14410
authored
Mar 24, 2025
by
张立顺
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
修改构筑目录配置
1 parent
c5c4cbdb
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
3 deletions
vue.config.js
vue.config.js
View file @
fab1441
const
path
=
require
(
'path'
)
const
path
=
require
(
'path'
)
const
packageName
=
require
(
'./package.json'
).
name
const
packageName
=
require
(
'./package.json'
).
name
const
node_env
=
process
.
env
.
NODE_ENV
===
'production'
const
node_env
=
process
.
env
.
NODE_ENV
===
'production'
// const publicPath = node_env ? `/child/${packageName}/` : '/'
const
publicPath
=
node_env
?
`/`
:
'/'
const
publicPath
=
node_env
?
`/
${
packageName
}
/`
:
'/'
const
resolve
=
dir
=>
path
.
join
(
__dirname
,
dir
)
const
resolve
=
dir
=>
path
.
join
(
__dirname
,
dir
)
// const CDN_DOMAIN = 'https://cdn.bootcdn.net/'
// const CDN_DOMAIN = 'https://cdn.bootcdn.net/'
const
CDN_DOMAIN
=
'https://img02.glsx.com.cn/'
const
CDN_DOMAIN
=
'https://img02.glsx.com.cn/'
...
@@ -14,7 +13,7 @@ const cdn = {
...
@@ -14,7 +13,7 @@ const cdn = {
module
.
exports
=
{
module
.
exports
=
{
outputDir
:
`dist`
,
outputDir
:
`dist`
,
publicPath
,
publicPath
,
assetsDir
:
'static'
,
//
assetsDir: 'static',
productionSourceMap
:
false
,
productionSourceMap
:
false
,
configureWebpack
:
{
configureWebpack
:
{
resolve
:
{
resolve
:
{
...
...
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