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

Borks on system files #114

Open
natevw opened this issue Nov 30, 2013 · 1 comment
Open

Borks on system files #114

natevw opened this issue Nov 30, 2013 · 1 comment

Comments

@natevw
Copy link

natevw commented Nov 30, 2013

It'd be nice if the file listing code could ignore hidden files. E.g. the binary ".DS_Store" files that Finder.app on OS X creates keep making it upset:

[TypeError: my-project/public/css/.DS_Store:1
 > 1| Buol_lg1_dsclbool_lg1Scompz�_moDDdutc�
                                              @� @ @ @
                                                      E�DSDB  @ @ @

Cannot read property 'type' of undefined

(This is in a rack.DynamicAssets with type: rack.StylusAsset and watch: true in case that makes a difference.)

@freshlogic
Copy link

I worked around this issue by using filter.

var assets = new rack.Rack([
    new rack.DynamicAssets({ dirname: './public/styles', filter: '.scss', options: { compress: true, gzip: true }, type: rack.SassAsset, urlPrefix: '/styles' })
]);

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