You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I was using <%= asset_path('resource') %> in my css file to retrieve some resources (web fonts in my case) and I noticed that after running shunter-build script all my webfonts where being served from the root www.domain.com/public/resources/web-font.woff instead of from the path declared in the mount-path option resulting in a 404.
DustJS asset path helper (<script src="{@assetPath src="main.js"/}"></script>) works as expected.
Expected Behaviour
if I run: NODE_ENV=production node app.js -l -c 1 --mount-path=/mypath
I'm expecting all my assets generated by Shunter to be served from: /mypath/public/resources/
Current Behavior
If you reference an assets inside a CSS file using this helper: <%= asset_path('resource') %> it will ignore the mount path option --mount-path=/mypath
Context (Environment)
This will only happens if you use that flag and reference a resource via Mincer asset_path helper.
Hope it is clear enough!
Thanks!
The text was updated successfully, but these errors were encountered:
Hi team,
I was using
<%= asset_path('resource') %>
in mycss
file to retrieve some resources (web fonts in my case) and I noticed that after runningshunter-build
script all my webfonts where being served from the rootwww.domain.com/public/resources/web-font.woff
instead of from the path declared in themount-path
option resulting in a 404.mount-path
was introduced here: #262DustJS asset path helper (
<script src="{@assetPath src="main.js"/}"></script>
) works as expected.Expected Behaviour
if I run:
NODE_ENV=production node app.js -l -c 1 --mount-path=/mypath
I'm expecting all my assets generated by Shunter to be served from:
/mypath/public/resources/
Current Behavior
If you reference an assets inside a CSS file using this helper:
<%= asset_path('resource') %>
it will ignore the mount path option--mount-path=/mypath
Context (Environment)
This will only happens if you use that flag and reference a resource via Mincer asset_path helper.
Hope it is clear enough!
Thanks!
The text was updated successfully, but these errors were encountered: