Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dev script/task #34

Open
Shuunen opened this issue Sep 6, 2018 · 4 comments
Open

Dev script/task #34

Shuunen opened this issue Sep 6, 2018 · 4 comments

Comments

@Shuunen
Copy link

Shuunen commented Sep 6, 2018

Hi :)

I tryed to use task "watch" in package.json but it only build the app on each changes, I still had to start app on another terminal to see any updates. It's annoying to kill/start app after each changes so I add this "dev" task :

"dev": "nodemon --exec run-s build:dev start:dev",

with this nodemon config :

 "nodemonConfig": {
    "ext": "js,vue",
    "ignore": [
      "build/*",
      "dist/*",
      "node_modules/*"
    ],
    "watch": [
      "src/*"
    ]
  }

and these packages as dev dependencies : nodemon & npm-run-all

Now on each changes in js or vue files in src folder, nodemon will kill vuido app, build and start the freshly updated app again.

Am I using the default stack wrong or this feature is not available yet ?

@mimecorg
Copy link
Owner

mimecorg commented Sep 6, 2018

This feature is not available by default, I didn't want to make the default configuration too complicated. But I agree that it may be useful, maybe I should add it to the documentation.

@Shuunen
Copy link
Author

Shuunen commented Sep 7, 2018

Cool 👍

@benavern
Copy link

I think this is very usefull, as a web developer, I am very used to "hot reload" features. I think that's a must have for most developers that will try / use your project, and I am one of these!

Thank you @Shuunen .

and than you too @mimecorg for what you've acheaved. This could be a must have for a ton of people in a very close future!

@cb109
Copy link

cb109 commented Nov 20, 2018

Came here to ask for this, great to see that there is a solution already. Are there any plans / is it technically possible to get an "in-place" hot-reload, as in when I change the html the application window automatically reflects the changes without having to close and restart?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants