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

能不能把seajs也加载进来 #14

Open
guohuihot opened this issue Dec 28, 2015 · 7 comments
Open

能不能把seajs也加载进来 #14

guohuihot opened this issue Dec 28, 2015 · 7 comments

Comments

@guohuihot
Copy link

能不能把seajs,也加载进来,像这样seajs.use("./static/seajs");
我试下 了下,可以加载进来,只是顺序不对

@chenmnkken
Copy link
Owner

应该不支持

@guohuihot
Copy link
Author

这个插件不是你做的吗,怎么不确定呢?

@chenmnkken
Copy link
Owner

第一次看到如此奇葩的用法,你的 seajs 没加载之前 seajs.use 是怎么运行的,如果 seajs.use 能正常运行为什么还要加载 seajs。

@guohuihot
Copy link
Author

^_^这里只是编译嘛,没运行,要按照seajs的依赖,把依赖文件编译成一个文件,当然把seajs也弄进来
最后的文件内容如下:

//seajs
//jquery
//tempale.js
//...等等

@guohuihot
Copy link
Author

#15
这个问题能否给解释下,谢谢!

@yursile
Copy link

yursile commented May 11, 2016

说句实在话。确实应该把seajs打包进来啊,es6 browserify不就打包进去了吗。
还有seajs.use还得单独在一个js里,为什么不能封装进去作为参数呢

@chenmnkken
Copy link
Owner

seajs 不是一个 CMD 的模块,对于 seajs-combo 插件来说它就是一个普通的 js 文件,如果想将其打包到一起应该结合其他的插件一起使用。

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

3 participants