Loading custom assets files

Posted 2 years ago by construct

I am creating a package with the following structure.

Packages -> Package Name -> Vender Name -> src -> js / css

Everything is currently working except that I can't find anywhere how to load custom css/js files. If I write the full path like asset('path/to/js/blah.js'), than this won't be valid once the package is published. Anyone knows how to get this working in dev mode and once published it will a work in production as well?

Thanks.

Please sign in or create an account to participate in this conversation.