Forum Discussion

igor_nadiein's avatar
4 years ago

Access root path of SDK plugin folder

Hello

Looking a way how to request  script that placed in folder out of /res folder of plugin.

So i need to call script file from /res/components/custom.component.ftl like this:

<script src="../../custom-app/build/index.js"></script>

Is it possible? Right now it is not working form me.

Thanks for advance

  • igor_nadiein, You cannot place any JS file under "\res" folder

    Only way to do this you can include your index.js file in "\web\html\assets" folder.

    and then you can use it with the path of your your script file in component like below

    <script src="/html/assets/index.js"></script>