Code Monkey home page Code Monkey logo

Comments (6)

zouhir avatar zouhir commented on May 16, 2024 1

I understand your question, unfortunately the only way to handle that is in your config \ NODE_ENV.

Jarvis works like any other plugin and runs once it exists in the plugins array in your webpack config file and they way you have done it is actually the right way, I don't know of any better idea but here are what we can do:

1- instead of passing JARVIS=true you can rely if --watch exist or not, and in your base configs you you can probably check of this is --watch mode: https://stackoverflow.com/a/5767589

2- another option is, we can add disable option to Jarvis, but we still need a flag from you on when to disable it and it will end up very similar to what you have.

Please let me know if I can help further more!

from jarvis.

stephencookdev avatar stephencookdev commented on May 16, 2024 1

I've raised #125 as a possible example of what I mean. Hopefully something like this could solve both this issue, and #122?

from jarvis.

stephencookdev avatar stephencookdev commented on May 16, 2024 1

I believe that with 0.3.0 Jarvis should behave as described here

Unless the watchOnly option is set to false, then Jarvis won't run when just running a non-watching build

So this ticket should be fine to close?

from jarvis.

deadcoder0904 avatar deadcoder0904 commented on May 16, 2024

Cool I thought there would be a better way though 😂

from jarvis.

stephencookdev avatar stephencookdev commented on May 16, 2024

@zouhir might it make sense to only run Jarvis in watch mode by default? i.e. by booting it up in compiler.plugin("watch-run", ...), rather than where it sits atm in the root apply?

Maybe worth considering with me #122 to make the option be something like options.onlyRunInWatchMode (awful name, but you get my point) which defaults to true? And then when sets to false it will boot up Jarvis regardless of watch mode or not, and not close the server as soon as the build finishes?

from jarvis.

zouhir avatar zouhir commented on May 16, 2024

yep! can be closed!

from jarvis.

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.