Skip to content
This repository has been archived by the owner on Aug 7, 2019. It is now read-only.

Sovling relative path wrong in Chrome extension? #155

Open
tiye opened this issue Oct 22, 2013 · 0 comments
Open

Sovling relative path wrong in Chrome extension? #155

tiye opened this issue Oct 22, 2013 · 0 comments

Comments

@tiye
Copy link

tiye commented Oct 22, 2013

➤➤ tree -I jam
.
├── coffee
├── index.html
├── lib
│   ├── bg.js
│   ├── bg.map
│   ├── find.js
├── manifest.json
├── package.json

in index.html I wrote:

<script src="./jam/require.js" data-main="./lib/find"></script>

in find.js I have such code:

define(function(require, exports) {
  console.lo(require("ractive"))
})

then I found error in my console:

chrome-extension://cffemmeembnmkikanliicdpcoahbkgij/lib/jam/ractive/Ractive.js

which should be:

chrome-extension://cffemmeembnmkikanliicdpcoahbkgij/jam/ractive/Ractive.js
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant