mirror of
https://github.com/middleman/middleman.git
synced 2022-11-09 12:20:27 -05:00
b975956e99
* Add option to remove filename to asset_hash extension * Add feature definition for remove_filename option in asset_hash * Yes, sir rubocop sir... * Replace remove_filename feature by rename_proc * Add tests for rename proc feature * Fix Rubocop issues
8 lines
212 B
Ruby
8 lines
212 B
Ruby
activate :asset_hash,
|
|
rename_proc: lambda do |path, _basename, digest, extension, _options|
|
|
"#{path}#{digest}#{extension}"
|
|
end
|
|
|
|
activate :relative_assets
|
|
|
|
activate :directory_indexes
|