Skip to content

Commit 8c329dc

Browse files
committed
disable asset hash for woff and woff2 files out of the box (#1231)
Signed-off-by: Matthew Peveler <[email protected]>
1 parent 589df5f commit 8c329dc

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

config.rb

+6-3
Original file line numberDiff line numberDiff line change
@@ -41,13 +41,16 @@
4141

4242
# Build Configuration
4343
configure :build do
44-
activate :asset_hash
44+
# We do want to hash woff and woff2 as there's a bug where woff2 will use
45+
# woff asset hash which breaks things. Trying to use a combination of ignore and
46+
# rewrite_ignore does not work as it conflicts weirdly with relative_assets. Disabling
47+
# the .woff2 extension only does not work as .woff will still activate it so have to
48+
# have both. See https://github.com/slatedocs/slate/issues/1171 for more details.
49+
activate :asset_hash, :exts => app.config[:asset_extensions] - %w[.woff .woff2]
4550
# If you're having trouble with Middleman hanging, commenting
4651
# out the following two lines has been known to help
4752
activate :minify_css
4853
activate :minify_javascript
49-
# activate :relative_assets
50-
# activate :asset_hash
5154
# activate :gzip
5255
end
5356

0 commit comments

Comments
 (0)