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

fis3 html 默认依赖 一些css js,怎么去做 #51

Open
hanyitim opened this issue Jul 12, 2016 · 2 comments
Open

fis3 html 默认依赖 一些css js,怎么去做 #51

hanyitim opened this issue Jul 12, 2016 · 2 comments

Comments

@hanyitim
Copy link

hanyitim commented Jul 12, 2016

//fis-conf.js
fis.match(**.html,{
requires:["lib/common.js","css/comtent.scss"]
});
这样子并没有什么效果,html 文件不会默认添加 requires 数组里面的东西

按照官方文档上面的去配置,不行,貌似在这里留言基本也很久才回的吧,fis3官方QQ群也不是解答问题的地方,所以,fis是没有专门的社区的咯

@UniKylin
Copy link

同问,目前在项目中想使用这种同名依赖的特性,但是配置依然不生效,希望官方给出案例。thanks

@hanyitim
Copy link
Author

我现在直接匹配 html ,然后设置 requires,之后自己写一个parser插件,获取 file 的 requires 自己加进去 html 里面

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