Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
dev
/
lilejia-f2mb-pro
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
2e222ff6
authored
2019-09-17 18:13:37 +0800
by
joe
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
换图,更换打包文件
1 parent
79adbd75
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
20 additions
and
1 deletions
src/components/biz-model/biz-model.vue
vue.config.js
src/components/biz-model/biz-model.vue
View file @
2e222ff
...
...
@@ -48,7 +48,7 @@
<br
/>
及时了解最新赛况及结果哦!
</div>
<div
class=
"qrcode"
>
<img
src=
"../../assets/imgs/
register-qrcode2.png
"
/>
<img
src=
"../../assets/imgs/
walfare-qrcode.png?v=19091718
"
/>
</div>
<div
class=
"model-bottom-line"
></div>
...
...
vue.config.js
View file @
2e222ff
const
MiniCssExtractPlugin
=
require
(
'mini-css-extract-plugin'
);
const
Timestamp
=
new
Date
().
getTime
();
// 打包目录
let
webpack_public_path
=
'dist'
if
(
process
.
env
.
NODE_ENV
===
'production'
)
{
...
...
@@ -9,6 +13,21 @@ module.exports = {
//例如 https://www.my-app.com/。如果应用被部署在一个子路径上,你就需要用这个选项指定这个子路径。例如,如果你的应用被部署在 https://www.my-app.com/my-app/,则设置 baseUrl 为 /my-app/。
//baseUrl 从 Vue CLI 3.3 起已弃用,请使用publicPath
//baseUrl: process.env.NODE_ENV === "production" ? "./" : "/",
configureWebpack
:
{
// webpack 配置
// 修改打包后js文件名
output
:
{
// 输出重构 打包编译后的 文件名称 【模块名称.版本号.时间戳】
filename
:
`static/js/[name].
${
Timestamp
}
.js`
,
chunkFilename
:
`static/js/[name].
${
Timestamp
}
.js`
},
// 修改打包后css文件名
plugins
:
[
new
MiniCssExtractPlugin
({
filename
:
`static/css/[name].
${
Timestamp
}
.css`
,
chunkFilename
:
`static/css/[name].
${
Timestamp
}
.css`
})
]
},
publicPath
:
process
.
env
.
NODE_ENV
===
"dev"
?
"/"
:
"https://kd.cdn.xyiyang.com/app/f2mb/"
,
// publicPath: process.env.NODE_ENV === "dev" ? "/" : "./",
...
...
Please
register
or
sign in
to post a comment