refactor: 产品大图迁移OSS,小图标本地打包,资源基址改为.env配置

This commit is contained in:
2026-08-06 23:52:48 +08:00
parent 8de00e6614
commit 0f3132b08e
77 changed files with 83 additions and 70 deletions
+5 -3
View File
@@ -1,3 +1,5 @@
const path = require('path')
require('dotenv').config({ path: path.resolve(__dirname, '../.env') })
const config = {
projectName: 'smart-engraving-miniapp',
date: '2026-7-20',
@@ -11,12 +13,12 @@ const config = {
outputRoot: 'dist',
plugins: [],
defineConstants: {
__OSS_BASE_URL__: JSON.stringify(process.env.OSS_BASE_URL || ''),
},
copy: {
patterns: [
{ from: 'src/img', to: 'dist/img' },
{ from: 'src/icon', to: 'dist/icon' }
,{ from: 'src/theme.json', to: 'dist/theme.json' }
{ from: 'src/icon', to: 'dist/icon' },
{ from: 'src/theme.json', to: 'dist/theme.json' }
],
options: {
}