Skip to content

Plack::Loader::Restarter won't restart when a sass partial is changed #260

Open
@tsibley

Description

@tsibley

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]!;

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions