We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
我在 fighting-design 项目中使用了 vite-plugin-progress,使用插件打包就报错,不使用可以正常打包,报的是路径的错误。
vite-plugin-progress
clone
pnpm i
pnpm i vite-plugin-progress -D
import progress from 'vite-plugin-progress' export default { plugins: [progress()], }
pnpm build
可以发现,使用插件之后打包报错,不使用的话就不会报错
The text was updated successfully, but these errors were encountered:
@jeddygong
Sorry, something went wrong.
@Tyh2001 Hi, 因为打包入口默认是 src,由于你的是一个 monorepo,所以需要加一个 srcDir(详见更多 options),看起来就像下面的代码一样:
import progress from 'vite-plugin-progress' export default { plugins: [ progress({ srcDir: 'packages/fighting-design' }) ], }
@Tyh2001 Hi, 因为打包入口默认是 src,由于你的是一个 monorepo,所以需要加一个 srcDir(详见更多 options),看起来就像下面的代码一样: import progress from 'vite-plugin-progress' export default { plugins: [ progress({ srcDir: 'packages/fighting-design' }) ], }
👍👍
No branches or pull requests
描述
我在 fighting-design 项目中使用了
vite-plugin-progress
,使用插件打包就报错,不使用可以正常打包,报的是路径的错误。错误截图
复现步骤
clone
fighting-designpnpm i
pnpm i vite-plugin-progress -D
pnpm build
可以发现,使用插件之后打包报错,不使用的话就不会报错
The text was updated successfully, but these errors were encountered: