miyagawa/Plack — Issue #260: Plack::Loader::Restarter won't restart when a sass partial is changed
Author: tsibley
Created: 2011-12-13 02:50:21+00:00
State: open

Sass partials start with an underscore, which is explicitly checked in valid_file.

Our use case: `plackup -p 8888 -e "BEGIN { system('./bin/generate-css'); }" -R static/style,static/js app.psgi`

Before we switched to sass partials, this rocked our dev cycles by restarting on any Perl, CSS, or JS change (and recompiling our CSS with Compass). More about partials: http://sass-lang.com/docs/yardoc/file.SASS_REFERENCE.html#partials

The offending regex is:

$file->{path} !~ m![/\\][\._]|\.bak$|~$|_flymake\.p[lm]!;