Skip to content
This repository was archived by the owner on Nov 24, 2017. It is now read-only.
This repository was archived by the owner on Nov 24, 2017. It is now read-only.

Use absolute URL for JS files? #65

@jackhand

Description

@jackhand

Is there a way to use absolute URLs for JS files?

Consider the following file structure of an app with 3 files:
App.js (includes foo/Foo.js)
foo/Foo.js (includes bar/Bar.js)
bar/Bar.js

The root path is located where App.js is stored. I would like to construct a merge command so Juicer knows where the root path is and so I can write the include statement in Foo.js so it is relative to the root path (i.e. "depend bar/Bar.js") . I don't wish to write the import statement so it is relative to Foo.js (i.e. "depend ../bar/Bar.js")

I would like to be relative to the root, because other programming languages construct their import statements like this. Plus, it is much easier to copy and paste an import statement from another JS file (in possibly a different folder) w/o then having to figure out the relative path to the imported file.

Is this possible with the current version of Juicer?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions