Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
mingPayPc
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
fengzhaoyu
mingPayPc
Commits
a5468c4f
Commit
a5468c4f
authored
Dec 06, 2019
by
liang ce
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
webpack修改
parent
839c23c3
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
1 deletions
+7
-1
vue.config.js
vue.config.js
+7
-1
No files found.
vue.config.js
View file @
a5468c4f
const
Timestamp
=
new
Date
().
getTime
()
module
.
exports
=
{
// baseUrl type:{string} default:'/'
// 将部署应用程序的基本URL
...
...
@@ -6,7 +7,12 @@ module.exports = {
// https://www.my-app.com/。如果应用程序部署在子路径上,则需要使用此选项指定子路径。例如,如果您的应用程序部署在https://www.foobar.com/my-app/,集baseUrl到'/my-app/'.
publicPath
:
'./'
,
configureWebpack
:
{
// webpack 配置
output
:
{
// 输出重构 打包编译后的 文件名称 【模块名称.版本号.时间戳】
filename
:
`[name].
${
Timestamp
}
.js`
,
chunkFilename
:
`[name].
${
Timestamp
}
.js`
}
},
// outputDir: 在npm run build时 生成文件的目录 type:string, default:'dist'
// outputDir: 'dist',
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
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 comment