Asset_hash doesn't work on v4 when combined with asset helpers

I have to admit that I haven’t used the asset_hash in v3, but testing now on a new site the two doesn’t work.

My assets added traditionally are all updated, the one with the helper are not.

e.g. regardless the setting the following line
<%= stylesheet_link_tag "jquery.mmenu", :media => "screen" %>

produces

<link href="/en/content/css/jquery.mmenu.css" rel="stylesheet" media="screen" />

Any idea?

I’m experiencing the same thing.

Doesn’t work in development or when built. Could it have something to do with an external pipeline?

My config looks like:

require 'slim'

# Pretty links
activate :directory_indexes

# Syntax highlighting
activate :syntax

set :http_prefix, '/docs'

# Asset pipeline
activate :external_pipeline,
  name: :webpack,
  command: build? ?
   './node_modules/webpack/bin/webpack.js --bail -p' :
   './node_modules/webpack/bin/webpack.js --watch -d --progress --color',
  source: '.tmp/dist',
  latency: 1

configure :build do
  activate :asset_hash
end

(Yes, that<s it)

My issues seemed to be caused by the :http_prefix setting.

Instead, I changed the :css_dir and :js_dir settings to point to File.join('docs', 'stylesheets') and such.