Skip to content
This repository has been archived by the owner on Oct 16, 2020. It is now read-only.

Allow to exclude jade files #17

Open
benjdl opened this issue Mar 23, 2016 · 5 comments
Open

Allow to exclude jade files #17

benjdl opened this issue Mar 23, 2016 · 5 comments

Comments

@benjdl
Copy link

benjdl commented Mar 23, 2016

Hello, thanks for your great plugin!

It would be great if we could exclude a jade file from the pipe, I mean for example the mixins files which didn't have to be compiled into a blade file.

@CREEATION
Copy link
Owner

Hey @benjdl,

I'll look into this as soon as possible, as I don't use Laravel anymore.
Thanks for reporting. :)

@dgrdl
Copy link

dgrdl commented Apr 9, 2016

I had the same issue and solved it by adding:

exclude: []

as an option and updating the gulp_src as follows:

var gulp_src = [options.baseDir + options.src + options.search];

for (var files of options.exclude) {
  gulp_src.push('!' + options.baseDir + options.src + files);
}

Then you can just do this in your gulpfile for example:

mix.jade({
  exclude: ['mixins/*.jade']
});

This can probably be improved, but it worked out for me.

@CREEATION
Copy link
Owner

@Qakulukiam Cool!
@benjdl Can you check if this works for you? I can't find the time to setup Laravel etc. so I can't really test this.

@benjdl
Copy link
Author

benjdl commented Apr 11, 2016

@Qakulukiam @CREEATION Works like a charm! ;)

@CREEATION CREEATION reopened this Apr 11, 2016
@dgrdl
Copy link

dgrdl commented Apr 11, 2016

#19 sent pull request for this enhancement

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

No branches or pull requests

3 participants