Comments (6)
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.
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.
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.
Cool I thought there would be a better way though 😂
from jarvis.
@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.
yep! can be closed!
from jarvis.
Related Issues (20)
- Uncaught (in promise) TypeError: Cannot read property 'length' of undefined HOT 1
- Use uWS in Socket.io? HOT 2
- How to use it with preact-cli preact.config.js ? HOT 1
- Warning: Unmet peer dependency.
- DeprecationWarnings: Tapable.plugin is deprecated. Use new API on `.hooks` instead HOT 2
- isn't it better to try to build a voice comand your JARVIS
- Uncaught TypeError: Super expression must either be null or a function, not undefined
- Still maintain? HOT 4
- Jarvis in Vagrant
- Allow passing in custom logger
- Run once with existing json and produce local output
- User Jarvis with Angualr-Cli
- static output
- address already in use
- Dead project?
- Any update? HOT 5
- Do not know how to install HOT 3
- Webpack 5; TypeError: compiler.plugin is not a function HOT 5
- Thermostat SetTemperature fehlerhafte Anzeige HOT 1
- ..
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 jarvis.