fis-plus
fis-plus copied to clipboard
百度基于FIS的前端集成解决方案,可能是史上最强大的前端集成解决方案
问题是这样的,我们会写很多mixin,比如把他放到common里面,但在其他模块试图引用这些mixin时会报错,跪求这个如何解决
有问题想交流,但是不知道怎么可以及时联系上
在module #module子系统中的样式文件如何引用 common #通用子系统 的图片呢?



我发现 layout.tpl 中并没有在`{%body%}{%/body%}`外添加脚本的依赖声明,但生成的 html 中,在``之后有``引用。 这是 featrue 吗?

``` fis.config.set('namespace','common'); fis.config.set('pack', { 'jquery.js':[ 'static/lib/jquery-1.8.3.min.js' ], 'a.js' : [ 'widget/a/**.js' ], 'b.js':[ 'widget/b/**.js' ], 'c.js':[ 'widget/c/**.js' ] }) ``` 在页面上输出的是 ``` require.resourceMap({ "pkg":{ "common:p3":{"url":"/static/common/c.js"}, "common:p1":{"url":"/static/common/a.js"}, "common:p2":{"url":"/static/common/b.js"} } }); ```...