Coder Social home page Coder Social logo

Comments (9)

passy avatar passy commented on August 19, 2024

👍

from grunt-contrib-connect.

shama avatar shama commented on August 19, 2024

Ah good point. The first in the array sounds good to me. I'll make that change tonight.

from grunt-contrib-connect.

sindresorhus avatar sindresorhus commented on August 19, 2024

The first in the array sounds good to me

Is that the common usecase though? Like, why do people need multiple static directories? I would think it would be to do similar things like in yeoman, which would make the last item in the array the one, that should be the directory.

from grunt-contrib-connect.

shama avatar shama commented on August 19, 2024

I think the directories is the less important part to having multiple bases. I didn't think it was a big deal if it listed the files of the first base and made the other bases accessible if you knew the url. Which is why I merged it in that state.

But whatever way works best for yeoman, I'm happy to make that change. So last item in the array would be most consistent?

from grunt-contrib-connect.

sindresorhus avatar sindresorhus commented on August 19, 2024

So last item in the array would be most consistent?

yup

And ability to manually set a directory option if the automatic behaviour doesn't work for someone.

from grunt-contrib-connect.

shama avatar shama commented on August 19, 2024

Done. Bumping to 0.4.1 as I doubt anyone is relying on the previous behavior in the last day it was implemented.

from grunt-contrib-connect.

sindresorhus avatar sindresorhus commented on August 19, 2024

Awesome! Thanks for the quick fix.

Can you also update the middleware example: https://github.com/gruntjs/grunt-contrib-connect#middleware

from grunt-contrib-connect.

shama avatar shama commented on August 19, 2024

2e71f8d

from grunt-contrib-connect.

passy avatar passy commented on August 19, 2024

Thanks, @shama!

from grunt-contrib-connect.

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.