Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
Ensure generated file always contains a base name #861
This changes the default output filename from [hash].[ext] to [name].[hash].[ext] in all cases.
This makes the output naming consistent with Whitenoise in all cases. This is because only files named as .. will be considered immutable, all other files will have the default 10 sec age set.
In addition, the user can customise the name using the block_name attribute.
This change was originally to solve #775, but this only changes the output naming convention.
…ash>.<ext> to <name>.<hash>.<ext> * The default name is set to output. This helps with Whitenoise integration as only files named as <name>.<hash>.<ext> will be considered immutable. * Use the block_name as the name if it's provided in the template tag. * When using single or multiple js/css files with no filters defined the basename of one of those files will be used for the name (this is existing behaviour). * Tests added and updated to support the name change.