Skip to content
New issue

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

如何在dumi构建的项目中引入静态js文件 #1814

Closed
crazymad-apps opened this issue Aug 2, 2023 · 2 comments
Closed

如何在dumi构建的项目中引入静态js文件 #1814

crazymad-apps opened this issue Aug 2, 2023 · 2 comments
Labels
question Further information is requested

Comments

@crazymad-apps
Copy link

Question

如题,我需要构建一个仓库,其中有一个依赖无法以npm的形式安装,我必须使用静态js的形式引入,我找不到统一的index.html入口引入文件

Sample Code

@crazymad-apps crazymad-apps added the question Further information is requested label Aug 2, 2023
@crazymad-apps
Copy link
Author

除了index.html以外,还有静态css文件也要从静态入口引入

@PeachScript
Copy link
Member

参考:https://d.umijs.org/config#headscripts 以及同文档中的 linksscripts 配置项

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants