Skip to content

Automatically determine appropriate rules without the need for exclude #6

Description

@CoolOppo

Let's say you have the following rules:

[minify]
from = '(?P<name>.*)\.js$'
to = '$name.min.js'
exclude = '\.min\.js$'
command = 'cp $i $o'

[gzip]
from = '(?P<name>.*)\.min\.js$'
to = '$name.min.js.gz'
command = 'zopfli $i'

Without the exclude property, the minify rule will run on its own output files as well. It shouldn't be required in this situation because the program can automatically determine that the .min.js file was generated by that rule, but this situation is not accounted for at the moment.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requesthelp wantedExtra attention is needed

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions