Skip to content

having trouble specifying path of css to load #230

Description

@funkyvisions

This could totally be my misunderstanding of how to use this library, but I'm trying to use it the same way I used

https://github.com/requirejs/text

There I did the following:

define(["text!./util/inappbrowser.js", function(js) {});

The target file was relative to the baseUrl path (js) in my require.config. The resultant path is

http://localhost:8000/js/util/inappbrowser.js

I'm trying to do the same thing with this.

define(["css!../views/snippets-shared/pull-list-item"]

however the path it tries to load from comes out as

http://localhost:8000/views/views/views/views/snippets-shared/pull-list-item.css

The only way I can get this to work is to specify the path of

../../../../views/snippets-shared/pull-list-item

Is this enough info to help me diagnose what is going on?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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