zouhir / jarvis

A very intelligent browser based Webpack dashboard
5.44k stars 191 forks source link

Do not know how to install #148

Closed KnowsCount closed 4 years ago

KnowsCount commented 4 years ago

Sorry I am so noob on this, but I don't know what to do after a few steps, I:

And then, according to the tutorial, one must add these code below to a 'webpack config' file:

const Jarvis = require("webpack-jarvis");

/* the rest of your webpack configs */

plugins: [
  new Jarvis({
    port: 1337 // optional: set a port
  })
];

I have no idea at all what that is & have no idea at all where that is, however, I found a 'webpack.js' file in this GitHub repo, link, nevertheless, cloning this and editing this file would not work (I suppose), whilst I cannot find any other way, the only thing I can do is to ask here. 😂 Cheers for any reply, and again, I am bloody hell noob...

ForsakenHarmony commented 4 years ago

Sorry, this is kinda unmaintained, probably not compatible with the latest webpack version

https://webpack.js.org/concepts/plugins/#configuration Here's what a more complete config looks like, but configuring webpack in general is not super trivial, especially with something like a full react project, and something you'd probably want to avoid if you're just getting started with js/ts

Here's an example of how you'd add a plugin with next: https://github.com/tinacms/tinacms.org/blob/master/next.config.js#L47

KnowsCount commented 4 years ago

Cheers for ur reply! (I literally just looked into tinacms a few minutes before your response lol)

ForsakenHarmony commented 4 years ago

I know, looked at something you might have worked on that uses webpack in some way 🙈