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

roadmap.path.reg 正则问题 #206

Closed
UphkcRNqmafQWcSSSSSS opened this issue Nov 22, 2014 · 1 comment
Closed

roadmap.path.reg 正则问题 #206

UphkcRNqmafQWcSSSSSS opened this issue Nov 22, 2014 · 1 comment

Comments

@UphkcRNqmafQWcSSSSSS
Copy link

我的文件目录是这样的: templates/includes/.jade; templates/widget/.jade;
templates/index.jade, templates/upload.jade, templates/my.jade;

我只想编译templates/.jade 文件, includes,widget 不编译不输出;
我的reg是这样写的: /^/templates/(.
.jade)/i 但是还是编译了, 是不是写错了? 正则很差-.- 555 @hefangshi @fouber

@oxUnd
Copy link
Contributor

oxUnd commented Nov 22, 2014

你可以这样实现你的需求;

fis.config.set('roadmap.path', [
    {
        reg: /^\/templates\/(?:includes|widget)\/.*\.jade/,
        release: false
    }
]);

解释:includes, widget俩目录下的jade不发布

@oxUnd oxUnd closed this as completed Nov 22, 2014
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