Opened 7 years ago

Closed 6 years ago

#28566 closed Cleanup/optimization (fixed)

Allow full filepath ignore pattern matching on collectstatic command

Reported by: Daniel Wiesmann Owned by: Daniel Wiesmann
Component: contrib.staticfiles Version: dev
Severity: Normal Keywords:
Cc: Triage Stage: Accepted
Has patch: yes Needs documentation: no
Needs tests: no Patch needs improvement: yes
Easy pickings: no UI/UX: no

Description

The collecstatic ignore patterns currently try pattern matching on the basename and on the path separately. There are cases where excluding js files from a specific folder is desireable. For instance, when vendor js source files are not desired, but other static files are (such as css or images from the library).

Full file path matching would allow to define more detailed control in these cases.

Change History (3)

comment:1 by Tim Graham, 7 years ago

Has patch: set
Triage Stage: UnreviewedAccepted

comment:2 by Claude Paroz, 7 years ago

Patch needs improvement: set

comment:3 by Tim Graham <timograham@…>, 6 years ago

Resolution: fixed
Status: assignedclosed

In 8f75d21a:

Fixed #28566 -- Added path matching to collectstatic ignore patterns.

Note: See TracTickets for help on using tickets.
Back to Top