-
Notifications
You must be signed in to change notification settings - Fork 38
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
data-main指定js,在编译打包后,页面运行时仍然被请求 #50
Comments
感觉 js/h5 并没有打包在 h5.html_aio.js 中,你找找看 |
在,的确在,而且在h5.html_aio.js的最下面 |
那考虑换种写法吧?
改成 <script src="/js/lib/require.js"></script>
<script>
require(['js/h5'])
</script> |
按照你的提示做了,不知道为什么会出现这么一行代码 |
paohuoche你好,这个问题解决了吗? |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
原始页面中有
<script data-main="js/h5" src="/js/lib/require.js"></script>,
编译后页面中为:
这样编译后还会请求h5.js,请问如何解决?
The text was updated successfully, but these errors were encountered: