Git Product home page Git Product logo

Comments (13)

jbreuer95 avatar jbreuer95 commented on May 12, 2024 2

@alanaasmaa I have found a partial solution too this. I got it too work that when you change an app file or a non-nuxt file, nuxt doesn't rebuild when visiting a non-nuxt route. If you visit a nuxt route after changing a non-nuxt file then nuxt will have to rebuild, there is no way around this since the server is restarted the Nuxt instance will be destroyed and has to be rebuilt. In my solution, you do get the extra benefit of being able to use adonis serve --dev again. I only can't get HMR to work yet. as soon as I finish that and write some tests I will submit a pr or post the solution here. Hopefully today, otherwise next week :)

from adonuxt-template.

jbreuer95 avatar jbreuer95 commented on May 12, 2024 1

@alanaasmaa got a PR up, if you want to try it now you can do:
adonis new --blueprint jbreuer95/adonuxt-template <project-name>
Let me know if it works out :)

from adonuxt-template.

feryardiant avatar feryardiant commented on May 12, 2024 1

@jbreuer95 Awesome!

I've had same issue while testing a project based on this template using vow-browser & your fork safe my day. Thanks so much!

@alanaasmaa owe you a beer btw 😉

from adonuxt-template.

czco avatar czco commented on May 12, 2024 1

@alanaasmaa got a PR up, if you want to try it now you can do:
adonis new --blueprint jbreuer95/adonuxt-template <project-name>
Let me know if it works out :)

@jbreuer95 how were you able to achieve this? your repo has been deleted :( April 2020, this issue is still annoying, I can't believe that ppl are ok with combined builds for server side changes. Do you by any chance still have your code or can you suggest what needs to be changed?

from adonuxt-template.

jzucadi avatar jzucadi commented on May 12, 2024

Are you referring to when you are in development and running a server with live reloading?

from adonuxt-template.

jamesAtcodeninja avatar jamesAtcodeninja commented on May 12, 2024

Yes, the live reload on the server by nodemon forces everything to reload.

from adonuxt-template.

jzucadi avatar jzucadi commented on May 12, 2024

The watchers property lets you overwrite watchers configuration in your nuxt.config.js.

watchers: { webpack: { aggregateTimeout: 300, poll: 1000 } }

You can override webpacks defaults settings but you will need to comb through here first: https://webpack.js.org/configuration/watch/#watchoptions

from adonuxt-template.

jamesAtcodeninja avatar jamesAtcodeninja commented on May 12, 2024

I'm not really sure if this has to do with nodemon watching the backend code. If you look at the script for dev it has nodemon watching /app, .env, and etc. The NuxtController that's within the /app folder triggers webpack to reload as well.
But please tell me if my understanding is wrong.

from adonuxt-template.

jzucadi avatar jzucadi commented on May 12, 2024

Honestly, I'm not sure. I just went through the nuxt docs and the only section on watchers said what I posted above

from adonuxt-template.

alanaasmaa avatar alanaasmaa commented on May 12, 2024

Has anyone found solution for this ? I have searched and multiple times, can't find solution.

from adonuxt-template.

alanaasmaa avatar alanaasmaa commented on May 12, 2024

@jbreuer95 awesome !! I will try it as soon i get home ! Very good job ! If it works i will buy you a beer :)

from adonuxt-template.

amraei avatar amraei commented on May 12, 2024

After almost 3 years, this issue is still annoying. Are we the only people on the earth who care about the time spending for builds?

from adonuxt-template.

jbreuer95 avatar jbreuer95 commented on May 12, 2024

@jbreuer95 how were you able to achieve this? your repo has been deleted :( April 2020, this issue is still annoying, I can't believe that ppl are ok with combined builds for server side changes. Do you by any chance still have your code or can you suggest what needs to be changed?

#86

from adonuxt-template.

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.