refactor: 产品大图迁移OSS,小图标本地打包,资源基址改为.env配置
This commit is contained in:
+5
-3
@@ -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: {
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user