Giter Site home page Giter Site logo

Comments (1)

Arkni avatar Arkni commented on August 22, 2024

I don't know if you still need a help with this or not. But I'll try to answer some of the question for future ref.

My initial expectation was that setting the httpBase option to http://localhost:8000 (for example) would result in all the strings (not only found files) in the src option to be appended with this string and passed on to the PhantomJS browser.

That was made clear in README:

#### httpBase
Type: `String`
Default: `false`

Create URLs for the `src` files, all `src` files are prefixed with that base.

I thought that the following would provide the http://localhost:8000/test.html to the browser if the test.html was located in the www directory:

src: ['test.html'] (first example) will be expanded to an empty object. AFAIK src should be a valid glob pattern, that expand to path/to/file. So it will not work.

I also tried the following, which to me seems like the only way that the option could have worked without breaking the (what I suspect to be) Grunt.js convention of only listing source files that are found to actually exist:

There is an other rule that says httpBase should not be terminated with a / (see source code).

One thing you should know is, your configuration of your local web server (in your case you're using grunt-contrib-connect) doesn't matter to this plugin. So, you have to configure it correctly (adjust the base option) in order to work with this plugin.

Closing this for now, feel free to ask if you have followup questions.

from grunt-contrib-qunit.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.