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

当打包文件只有一个时,不会自动打包? #37

Open
yanhaijing opened this issue Dec 21, 2015 · 8 comments
Open

当打包文件只有一个时,不会自动打包? #37

yanhaijing opened this issue Dec 21, 2015 · 8 comments

Comments

@yanhaijing
Copy link

比如index.html中有一个css文件,index.css
此时,并不会打包index.css,当有两个及以上时,就会打包,感觉一个的时候也应该打包,我还以为我配置出错了。。。

@2betop
Copy link
Contributor

2betop commented Dec 21, 2015

是的,不会打包,想不出来为何要打包。

@yanhaijing
Copy link
Author

@2betop 为了行为一致性,比如开始还以为打包配置错了不生效呢,后来才发现是只有一个文件的原因,如果我每次都自动把pkg下的资源传到服务器,那么只有一个css的时候 我还要传静态文件的文件上去,而不是只传pkg就行

@2betop
Copy link
Contributor

2betop commented Dec 21, 2015

你是不是想把被打包的资源过滤掉?用这个插件吧。https://github.com/fex-team/fis3-deploy-skip-packed

@yanhaijing
Copy link
Author

就是这个需求,好赞啊

@yanhaijing
Copy link
Author

这个是只在deploy的时候才行吧?我在本地产出 不上传的话?如何使用呢?
比如我希望将打包出来的文件传到github pages下

@2betop
Copy link
Contributor

2betop commented Dec 21, 2015

本地不是用的 local-deliver 吗?在 local-deliver 之前插入它就行。

@feix760
Copy link

feix760 commented Mar 2, 2016

@2betop 能否加选项控制是否一个的时候也打包,我们项目也遇到这样的问题:
项目里不想把分散的scss文件local-deliver发布出去,而只发布allinone的文件,allinone的文件可以很容易地用文件名格式匹配到,但单个没打包的时候就会漏掉。

@yanhaijing
Copy link
Author

@feix760 同样的问题,同样的需求

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants