Comments (8)
@tobeyouth 居然有这样的情况,我咋不知道;-p
就是合并的意思啊。
from fis-plus.
@xiangshouding 我又试了一下,还是不行...
使用-p的话,是不是需要在fis-conf中将pack
这个字段写上啊?
另外,也可能是我没表述清楚,我的代码是这样的:
var $ = require('common:static/js/zepto.js'),
template = require('common:static/js/common.js');
xxxxxxx
然后我是期望代码可以合并成:
define('common:static/js/zepto');
define('common:static/js/template');
define('widget:static/js/xxxx');
这样。
或者也可以合并成这样:
zepto的一大坨
template的一大坨
xxxx
但是试了几次都没有成功。
ps:如果方便留个qq或者hi可以么。
from fis-plus.
依赖都是不会合并进去的,你再确认下。
2014年5月22日 下午5:32于 "tobeyouth" [email protected]写道:
@xiangshouding https://github.com/xiangshouding 我又试了一下,还是不行...
使用-p的话,是不是需要在fis-conf中将pack这个字段写上啊?另外,也可能是我没表述清楚,我的代码是这样的:
var $ = require('common:static/js/zepto.js'),
template = require('common:static/js/common.js');xxxxxxx
然后我是期望代码可以合并成:
define('common:static/js/zepto');
define('common:static/js/template');
define('widget:static/js/xxxx');这样。
或者也可以合并成这样:
zepto的一大坨
template的一大坨
xxxx但是试了几次都没有成功。
ps:如果方便留个qq或者hi可以么。
—
Reply to this email directly or view it on GitHubhttps://github.com//issues/15#issuecomment-43866573
.
from fis-plus.
@xiangshouding 依赖的是需要手动合并么?我看fis官网上有个modjs,这个modjs有相关的fis插件么?可以完成自动解析依赖,然后将合并模块成一个js文件。
from fis-plus.
目前没有,在计划之中
from fis-plus.
@tobeyouth 这个跟seajs实现原理不一样,FIS整个合并文件是通过配置来搞定的;预先根据静态资源的访问情况进行手动配包(设置pack
),然后才会进行打包。可能有些人会问,这样会不会很麻烦,如果文件多了确实有这个问题,所以FIS团队在FISP的基础上实现了一个自动打包的服务,这个不是严格按照依赖来进行打包的。而是按照组件的使用情况,是一个对全站访问的得到一个最优解。而不是单纯去优化某一个页面。
from fis-plus.
@xiangshouding 你所说的自动打包服务怎么使用,找了半天没找到...
还有个问题,可能纯属个人习惯问题,所以仅当参考哈:
就是比如有模块多重依赖的情况,也就是 A-->B-->C
这种。这种情况下,如果人工打包的话,很容易就漏打包文件进去,毕竟使用者不会很清楚组件的依赖情况。
from fis-plus.
@tobeyouth 我们还有个项目是自动打包项目,不需要人工配包即可实现相当不错的打包结果。
from fis-plus.
Related Issues (20)
- fisp 本地server 启动失败 HOT 1
- 0.8.13依赖的fis版本不是最新的,导致fis-sprite-csssprites不能兼容Node 4.x+
- fis-plus是否提供初始化新目录的命令 HOT 2
- fisp page 中引入 widget 时,同名的 js 并没有自动引入 HOT 1
- 期待 fis-plus 可以支持到 fis3 HOT 2
- Getting more done in GitHub with ZenHub
- fis3 release 后怎么生成index.html HOT 3
- fisp不支持nodev7.2.0吗? HOT 1
- 老提示无法加载[fisp-parser-utc] or [fis-parser-utc] HOT 2
- 如何使用thinkphp结合fis进行开发 HOT 6
- fisp安装sass后,执行release报错
- 除了demo之外,请问有没有fis-plus结合php的项目啊?
- 发布出错 HOT 1
- fis-smarty项目中每次发布配置文件中都要把config和plugin map.json文件重命名,是怎么回事
- server start 出现 Exception in thread "main" java.lang.NullPointerException 错误 怎么解决? HOT 4
- “目录规范” 页面 404
- 【fisp server start 500 】 HOT 3
- Error: upload file [/lib/base.css] to [/path/to/webroot] by receiver [http://10.153.xx.xx:8084/receiver.php] error [502] HOT 2
- fisp server init error HOT 3
- [ERROR] unable to load plugin [fisp-preprocessor-inline] or [fis-preprocessor-inline] HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from fis-plus.