0

Is there a way to load a js file, with RequireJS, that is not within a module, or theme, but still within your project. I had assumed relative pathing would work but when deployed, I get a 404 as the page is trying to load the file from within a static directory (frontend/Smartwave/porto/en/library/public/js/desired_file.js).

Below is an example of my failed attempt.

    paths: {
        test:     'library/public/js/desired_file',
};```

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.