Closed philipwalton closed 10 years ago
@adrianstainforth In your specific case it seems to be because index.html
is loading RequireJS, and that is conflicting with Browserify's UMD shim.
Browserify detects that AMD is happening on the page, so it doesn't expose the HTMLInspector object on window
(since it assumes you'll be requiring it somewhere). I'll have to think about whether I want to support this case.
Ahhh, ok, well give me a good excuse to learn Browserify! Well thanks for looking into it :)
I wouldn't necessarily change what you're doing. HTML Inspector should be able to handle this case. I just need to think of the best way.
That being said, Browserify is a cool tool. I recommend learning it.
This should be fixed as of v0.8.0. If you're still having problems let me know.
Awesome, thank you that works perfectly :)
That said enjoying playing with Browserify!
Clone https://github.com/djforth/image-replace.git and run
htmlinspector index.html
and you'll see the above error.