presstube / turkey

A turnkey starting point for JS projects
0 stars 1 forks source link

Refactor the way our build uses webpack #1

Closed jasonkuhrt closed 8 years ago

jasonkuhrt commented 8 years ago

Our build can be simplified by using command-line flags. Programming the configuration around environment variables is OK in more complex builds but so far nothing we were doing really requires it. Therefore the result of this refactor is a simpler implementation that achieves the same result.

The key information that this refactor relies on can be found in the Webpack docs for the CLI.

presstube commented 8 years ago

wow, so that little -p does everything we needed? Nice!

presstube commented 8 years ago

Ps. Want me to merge PRs once I've grokked them?

jasonkuhrt commented 8 years ago

wow, so that little -p does everything we needed? Nice!

Yep as long as we are just minifying the source code. Once we have more nuanced needs we'll probably bring back our programatic configuration.

Ps. Want me to merge PRs once I've grokked them?

👍 I think of the PR assignee as the gatekeeper.