vite-plugin-markdown-preview
vite-plugin-markdown-preview copied to clipboard
在windows上有路径问题
地址会变成一串
const resolve = (...args) => {
let ret = path.resolve(path.dirname(file), ...args);
ret = path.relative(root, ret);
return `/${ret}`;
};
change to
import slash from 'slash';
const resolve = (...args) => {
let ret = path.resolve(path.dirname(file), ...args);
ret = path.relative(root, ret);
ret = slash(ret)
return `/${ret}`;
};
can solve the question
resolved