Comments (5)
@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.
from html-inspector.
Ahhh, ok, well give me a good excuse to learn Browserify! Well thanks for looking into it :)
from html-inspector.
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.
from html-inspector.
This should be fixed as of v0.8.0. If you're still having problems let me know.
from html-inspector.
Awesome, thank you that works perfectly :)
That said enjoying playing with Browserify!
from html-inspector.
Related Issues (20)
- Warn CLI users if PhantomJS isn't installed. HOT 1
- Consider changing the executable name from `htmlinspector` to `html-inspector` for consistency. HOT 1
- NPM Error HOT 5
- Type error on Firefox 14.0.1 HOT 1
- Pure CSS stylesheets not found / classes not recognized HOT 3
- The <main> element can now appear more than once per page. HOT 3
- Link broken on FAQ HOT 1
- "PhantomJS must be installed to use the HTML Inspector CLI." (Windows 8.1) HOT 4
- Check for cross-domain errors in Firefox. HOT 1
- srcset bug HOT 1
- Don't analyse the content of scripts HOT 8
- "The span element cannot be a child of the del element." HOT 3
- adding a new rule
- disable save cache for url
- Action attribute really required on form elements?
- Please consider adding main to package.json HOT 1
- No output from html-inspector HOT 2
- "'autocomplete' is not a valid attribute of the <button> element."
- "<script> elements should appear right before the closing </body> tag for optimal performance."
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from html-inspector.