Jump to content

Webpack or not?


Recommended Posts

I wouldn't use it if you don't need to. It is useful if you have to embed other code and if you want to pack it into a small js-file.

But: It is another cycle after each compiling. I have to use typeScript and webPack in some projects and I think it's pretty annoying because of the time that is running after each compile process. TypeScript is great without any doubt! And it's okay for me to wait for the compiler. But to wait for webpack, too is a bit too much now.

I'm also working on another projects that is javascript-based (no typescript) and without webpack. And I have to say: It feels much better just to reload the page in the browser without waiting for the code to be compiled.

So I will think for every project if I have to use TypeScript and Webpack (and grunt)

Link to comment
Share on other sites

Do you see any advantage in using webpack? like smaller file size, better code management, or faster loading or execution of the game?

If you don't see any of this, or other thing that makes developing your game better or easier there's no point in using another tool.

Link to comment
Share on other sites

Webpack isn't an optimizer that makes your code lighter or faster. It's a dependency wrangler. If your JS declares dependencies (e.g. on commonJS modules, on images, CSS, whatever), then webpack can parse those dependencies and pack up all the necessary files and modules for deployment. If you don't need a tool to do that, I don't think you need to consider using webpack.


Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


  • Recently Browsing   0 members

    • No registered users viewing this page.
  • Create New...