1
0
Fork 0
mirror of https://github.com/middleman/middleman.git synced 2022-11-09 12:20:27 -05:00
middleman--middleman/middleman-core/fixtures/asset-hash-remove-filename/config.rb
Markus Fenske b975956e99 Feature: Add an option to create asset hashes without using the original filenames as prefix (#2249)
* 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
2019-01-29 13:21:36 -08:00

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