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

project.file设置过滤路径错误问题 #1271

Open
GameGGG opened this issue Sep 3, 2018 · 0 comments
Open

project.file设置过滤路径错误问题 #1271

GameGGG opened this issue Sep 3, 2018 · 0 comments

Comments

@GameGGG
Copy link

GameGGG commented Sep 3, 2018

bug:
`
fis3 init;

// fis-conf.js 设置project.files

fis.set('project.files', ['demo.js', '!/logo.gif', 'images/');

// 结果并不能过滤掉images/logo.gif
`
原因分析: /lib/project.js 中的getSourceByPatterns函数的过滤规则问题,导致先写过滤,在写包含并能过滤掉。目前代码里面只处理了第一个为过滤规则的情况。

问一下这是设计就是让开发者先写包含在写过滤,还是说应该优化?

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

1 participant