完成兑奖页面逻辑
This commit is contained in:
@@ -38,9 +38,9 @@ export default defineConfig(({ command, mode }) => {
|
||||
}
|
||||
},
|
||||
{
|
||||
filename: 'share',
|
||||
entry: '/src/page/Share/main.js',
|
||||
template: 'share.html',
|
||||
filename: 'cash',
|
||||
entry: '/src/page/Cash/main.js',
|
||||
template: 'cash.html',
|
||||
injectOptions: {
|
||||
data: {
|
||||
title: '分享页',
|
||||
@@ -61,7 +61,7 @@ export default defineConfig(({ command, mode }) => {
|
||||
verbose: true, // 默认即可
|
||||
disable: false, //开启压缩(不禁用),默认即可
|
||||
deleteOriginFile: false, //删除源文件
|
||||
threshold: 10240, //压缩前最小文件大小
|
||||
threshold: 10240, //压缩前最小文件大小:10k
|
||||
algorithm: 'gzip', //压缩算法
|
||||
ext: '.gz', //文件类型
|
||||
})
|
||||
@@ -115,7 +115,7 @@ export default defineConfig(({ command, mode }) => {
|
||||
},
|
||||
},
|
||||
// 公共基础路径:构建生产环境时自动载入cdn路径
|
||||
base: mode == 'production' ? env.VITE_CDN + env.VITE_FOLDER + '/' : './',
|
||||
base: './',
|
||||
// 打包配置
|
||||
build: {
|
||||
assetsPublicPath: './',
|
||||
@@ -125,8 +125,8 @@ export default defineConfig(({ command, mode }) => {
|
||||
terserOptions: {
|
||||
compress: {
|
||||
//生产环境时移除打印日志
|
||||
drop_console: mode == 'production' ? true : false,
|
||||
drop_debugger: mode == 'production' ? true : false,
|
||||
// drop_console: mode == 'production' ? true : false,
|
||||
// drop_debugger: mode == 'production' ? true : false,
|
||||
},
|
||||
},
|
||||
|
||||
|
||||
Reference in New Issue
Block a user