fix(share): wxacodeUrl 改用 useRef 避免压缩后引用丢失
This commit is contained in:
@@ -28,6 +28,11 @@ export default defineConfig(({ mode }) => {
|
||||
// File types to support raw imports. Never add .css, .tsx, or .ts files to this.
|
||||
assetsInclude: ['**/*.svg', '**/*.csv'],
|
||||
|
||||
build: {
|
||||
// 使用 esbuild 代替 terser 避免变量名 mangling 导致 ReferenceError
|
||||
minify: 'esbuild',
|
||||
},
|
||||
|
||||
server: {
|
||||
host: '0.0.0.0',
|
||||
allowedHosts: ['.trycloudflare.com', '.loca.lt'],
|
||||
|
||||
Reference in New Issue
Block a user