Skip to content
This repository has been archived by the owner on Dec 2, 2018. It is now read-only.

Using this with XSLT/.xsl #16

Closed
jdsimcoe opened this issue Sep 3, 2014 · 4 comments
Closed

Using this with XSLT/.xsl #16

jdsimcoe opened this issue Sep 3, 2014 · 4 comments

Comments

@jdsimcoe
Copy link

jdsimcoe commented Sep 3, 2014

I use Symphony CMS an open-source XSLT framework. All of the templates are .xsl files which are valid XML. XSLT supports HTML tags out of the box. I have tried passing .xsl files into gulp-uncss but it gives the following error:

Error: ENOENT, open 'workspace/xsl/master.xsl'

Any ideas on how I can use UnCSS in my projects with XSLT?

@ben-eb
Copy link
Owner

ben-eb commented Sep 3, 2014

ENOENT is thrown when the file/directory doesn't exist, could you check that your paths are resolved properly in your gulpfile.js? You may need to prefix them with ./.

@jdsimcoe
Copy link
Author

jdsimcoe commented Sep 3, 2014

Oh wow, that works beautifully. Didn't help that I entered the wrong filename. My last question is: is there a way to do fuzzy file matching? (i.e. './workspace/utilities/*.xsl') to loop through a whole folder of files?

@ben-eb
Copy link
Owner

ben-eb commented Sep 3, 2014

See p-j's comment at the end of this thread, currently there's no native globbing support for UnCSS.

#5

@jdsimcoe
Copy link
Author

jdsimcoe commented Sep 3, 2014

Thx!

@jdsimcoe jdsimcoe closed this as completed Sep 3, 2014
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants