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

模块调用的问题 #6

Open
guduey opened this issue May 27, 2015 · 2 comments
Open

模块调用的问题 #6

guduey opened this issue May 27, 2015 · 2 comments

Comments

@guduey
Copy link

guduey commented May 27, 2015

如果我把调用的模块代码写在js文件中,然后html中引用,代码就不会执行打包
需要把js代码写在html中才会打包
如何能实现<script src="require.js" data-main="main.js">这种用法

@2betop
Copy link
Contributor

2betop commented May 27, 2015

这个应该和 autoload 的打包策略有关。简单的引用资源不会打包,如果你用 fis 的标记依赖语法,应该就成了。比如

<!--@require your js path-->

试试把,good luck

@guduey
Copy link
Author

guduey commented May 27, 2015

感谢,解决问题了

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

2 participants