Vue-cli: Laravel Valet like service for Vue CLI projects

Created on 29 May 2018  路  5Comments  路  Source: vuejs/vue-cli

What problem does this feature solve?

  • Avoid having to manually start serve for each project
  • Add the ability to share sites using local tunnels
  • Having developer friendly test sites using like my-project.test instead of localhost:8080

What does the proposed API look like?

A single node service which would handle all requests. This service would spin up the dev servers on demand and then proxy requests to each dev server based on the domain name.

If the feature is deemed worthwhile by the community, I'm happy to help start putting this together :)

feature request

Most helpful comment

Not just Laravel users! Valet is pretty general purpose, but it suffers the same fate as Laravel Mix, which is also a very good general purpose tool...

All 5 comments

This has to be a separate project rather than something provided by vue-cli. Maybe @adamwathan will be interested? ;)

@yyx990803 what about as part of ui?
@adamwathan what are your thoughts?

@yyx990803 @adamwathan

I've created a Laravel Valet custom driver which does this - https://github.com/morrislaptop/WebpackDevServerValetDriver

For each domain name, it spins up a webpack dev server on a unique port according to the domain name provided.

For example a request to my-project.test would spin up a server at http://localhost:1032 and then proxy other requests to this server.

Should be good to go once #1421 is released.

That sounds pretty neat for Laravel users!

Not just Laravel users! Valet is pretty general purpose, but it suffers the same fate as Laravel Mix, which is also a very good general purpose tool...

Was this page helpful?
0 / 5 - 0 ratings

Related issues

evelynhathaway picture evelynhathaway  路  35Comments

ghenry picture ghenry  路  40Comments

yyx990803 picture yyx990803  路  34Comments

mayefeng picture mayefeng  路  44Comments

brunoseco picture brunoseco  路  35Comments