island.js
island.js copied to clipboard
base属性
Describe the bug
设置base属性后,文档中使用
的图片没有添加base路径,导致图片路径404
Reproduction
import { defineConfig } from 'islandjs';
export default defineConfig({ base: '/bar/' });
Expected behavior
设置base属性后,文档中使用
的图片打包后自动添加base前缀
System Info
macos
Additional context
No response
Validations
- [X] Read the docs
- [X] Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
好的,我来修复一下