Getting correct path to block asset

Permalink
Hi,
I've followed the instructions on this page of the documentation:
https://documentation.concrete5.org/developers/working-with-blocks/c...
for registering and requiring CSS/Javascript files within my block however, I can't figure out how to get the correct path to the assets I am requiring.

My block is inside a package but if I try to use the path I think it should be I get errors in the browser console because it can't find my assets. My setup is this:

Package (theme_foxearth)
-Blocks
--finance_calculator
---assets
----js
-----slider.min.js

slider.min.js is a library I have downloaded that I wish to include in my block so I can interact with an HTML5 slider easily. How can I get the correct URL for including this correctly? Thanks

 
CrystalShardz replied on at Permalink Reply
OK I've narrowed it down (slightly). The path is PREPENDED with /concrete/ when you use the Asset Manager helper to include the files. This obviously does not work if you are developing a package as it is uploaded to /packages/ not /concrete/packages. Still need to figure out how to correctly include the javascript and CSS files I need...
CrystalShardz replied on at Permalink Reply
I've figured a hack way by prepending my path with
../../
however this seems to be a silly way to do this, there must be a better way. Anyone able to suggest the better way?