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

增加hash打包静态资源后,启动项目报错 #2236

Closed
2fps opened this issue Nov 5, 2019 · 2 comments
Closed

增加hash打包静态资源后,启动项目报错 #2236

2fps opened this issue Nov 5, 2019 · 2 comments

Comments

@2fps
Copy link

2fps commented Nov 5, 2019

.webpackrc.js配置中增加如下配置,以在静态资源文件名中增加hash值,

hash: true,
html: { "template": "./src/index.ejs" },

项目启动会有报错,白屏,

Uncaught Error: Iframe has not been created yet.
Uncaught (in promise) Error: Iframe has not been created yet.

请问下如何处理?

@stale
Copy link

stale bot commented Jan 4, 2020

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the wontfix label Jan 4, 2020
@2fps
Copy link
Author

2fps commented Jan 7, 2020

原index.html中的script和link标签需要删除

@stale stale bot removed the wontfix label Jan 7, 2020
@2fps 2fps closed this as completed Jan 7, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant