How to plug in webpack 2.0 into phoenix 1.3.0-rc

I just want to revive this thread for a moment, because it’s discussing the merits of webpack vs brunch, and this is a pain point for me on every new project.

Brunch has a fatal flaw which has hit basically every project I’ve tried to use it with: it loads plugins in the order they are defined inside of package.json, which is alphabetized every time you install or remove a package. Invariably this causes me a development pain which I have detailed in my comments on this github issue.

I now take it as a given that my first task on any new project is to swap out brunch with webpack, and it’s definitely annoying over time. I would absolutely love to see webpack simply replace brunch.

1 Like

Webpack definitely sucked last year, but the very recent versions actually got it pretty decent and much faster, and it has pretty well taken over as essentially ‘the’ javascript build system, so that change would make sense now (or at least a template option).

Although I still prefer just basic npm scripts ‘as’ my build system. ^.^;

2 Likes