Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
T
train-admin-h5
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
tangjiale
train-admin-h5
Commits
85315eb9
Commit
85315eb9
authored
Jun 27, 2022
by
tangjiale
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
打包刷新资源
parent
7292bfa7
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
1 deletions
+5
-1
nuxt.config.js
nuxt.config.js
+5
-1
No files found.
nuxt.config.js
View file @
85315eb9
...
...
@@ -3,7 +3,7 @@
* @eMail: 932055106@qq.com
* @Date: 2022-02-11 15:07:57
* @LastEditors: tangjiale
* @LastEditTime: 2022-06-2
4 10:13:12
* @LastEditTime: 2022-06-2
7 11:33:05
*/
const
envMap
=
{
'dev'
:
{
...
...
@@ -30,6 +30,8 @@ const ENV_SCRIPT = {
]
};
const
Timestamp
=
new
Date
().
getTime
()
module
.
exports
=
{
mode
:
'spa'
,
head
:
{
...
...
@@ -83,6 +85,8 @@ module.exports = {
// require('autoprefixer')
],
extend
(
config
,
ctx
)
{
config
.
output
.
filename
=
`js/[name].
${
Timestamp
}
.js`
// 每次构建打包时给文件名加上时间戳,保证版本更新时与上版本文件名不一样
config
.
output
.
chunkFilename
=
`js/[name].
${
Timestamp
}
.js`
}
},
...
...
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