Comments (13)
@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.
@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.
@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.
@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.
Are you referring to when you are in development and running a server with live reloading?
from adonuxt-template.
Yes, the live reload on the server by nodemon forces everything to reload.
from adonuxt-template.
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.
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.
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.
Has anyone found solution for this ? I have searched and multiple times, can't find solution.
from adonuxt-template.
@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.
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 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.
Related Issues (20)
- dev server not hot reload changes under resources directory HOT 1
- Performing redirrects on routes HOT 1
- Authetication on nuxtjs not working HOT 3
- [Question] Two Nuxt instances in single project HOT 1
- Change the publicPath directory of adonis HOT 1
- Build broken after migrating Nuxt to v2.3.4 HOT 1
- The adonis subdomain of the nuxt website is not loading HOT 1
- Using adonis Env throws an error HOT 2
- Unable to import npm module in less HOT 1
- Unable to import npm module in less
- Production build injects global CSS onto page instead of file HOT 1
- RangeError Maximum call stack size exceeded HOT 1
- Append html nuxt.render HOT 2
- Adonuxt deprecated HOT 2
- adminlte integration HOT 1
- net::ERR_INCOMPLETE_CHUNKED_ENCODING 200 (OK) in nuxt.js HOT 3
- Error raised when mutating a copy of an object inside a store getter
- Stuck in endless refresh loop HOT 1
- issue on deployment
- What happened to this template? HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from adonuxt-template.