You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, <Manifest#compile> can not be used with RegExp patterns for files. While passing RegExp to the compile method we will get exception, because it assumes that files array can contain only strings. Here is the problem https://github.com/nodeca/mincer/blob/master/lib/mincer/manifest.js#L217. <isAbsolute> iterator is called for each file entry, if calling it with regExp obviously we will get an error. Can this be fixed by simpy filtering regExps from files array before calling <isAbsolute> method? I have tried locally and after that i was able to use RegExps at the file array for <Manifest#compile>
The text was updated successfully, but these errors were encountered:
olpapchenko
changed the title
While using Manifest#compile does not support regExp files patterns.
Manifest#compile does not support regExp files patterns.
Jan 24, 2016
Hi,
<Manifest#compile>
can not be used with RegExp patterns for files. While passing RegExp to the compile method we will get exception, because it assumes that files array can contain only strings. Here is the problem https://github.com/nodeca/mincer/blob/master/lib/mincer/manifest.js#L217.<isAbsolute>
iterator is called for each file entry, if calling it with regExp obviously we will get an error. Can this be fixed by simpy filtering regExps from files array before calling<isAbsolute>
method? I have tried locally and after that i was able to use RegExps at the file array for<Manifest#compile>
The text was updated successfully, but these errors were encountered: