公用模块的整合问题

25 views
Skip to first unread message

乐小明

unread,
Mar 20, 2013, 1:21:51 AM3/20/13
to se...@googlegroups.com
全局页面中总有一些js是公用的,也就是说大部分页面都会用到。
这样的话,每个功能如果都做成单一的模块,然后按需引入,请求数就太多了。
你们是如何处理的,直接整合到commonJs.js 文件中么?

Chris Chen

unread,
Mar 20, 2013, 1:24:19 AM3/20/13
to se...@googlegroups.com

使用combo插件

--
You received this message because you are subscribed to the Google Groups "seajs" group.
To unsubscribe from this group and stop receiving emails from it, send an email to seajs+un...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

Frank Wang

unread,
Mar 20, 2013, 2:02:14 AM3/20/13
to seajs


2013/3/20 Chris Chen <me.ch...@gmail.com>



--
王保平 / 玉伯(射雕)
送人玫瑰手有余香

gmail

unread,
Mar 20, 2013, 2:15:51 AM3/20/13
to seajs
总感觉前端插件跟一个web server强耦合,十分不妥。
目前淘宝可能是这种解决方案,有很好的借鉴意义,但是到框架层面,不同公司有不同的解决方案,不能说不用nginx就不能合并了?
目前spm的跨目录合并说实话不是非常理想,不能有效解决连接数过多的问题
 
Best Regards
----------------------------------------------------
TerryLee
 
发件人: Frank Wang
发送时间: 2013-03-20 14:02
收件人: seajs
主题: Re: 公用模块的整合问题

Frank Wang

unread,
Mar 20, 2013, 2:28:08 AM3/20/13
to seajs
spm 跨目录合并,可以通过 grunt 来做,目前还在紧张开发中,可以看



2013/3/20 gmail <binli...@gmail.com>

Ethan Zhang

unread,
Mar 20, 2013, 2:42:52 AM3/20/13
to se...@googlegroups.com
spm 会支持 bundle 么?

Regards,
Ethan Zhang

--
晓来雨过 遗踪何在 一池萍碎 春色三分 两分尘土 一分流水

Frank Wang

unread,
Mar 20, 2013, 2:48:30 AM3/20/13
to seajs
会的,目前已经可以通过 grunt task 来实现,参见


还处于 beta 版本,正在完善


2013/3/20 Ethan Zhang <perfec...@gmail.com>
Reply all
Reply to author
Forward
0 new messages