Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

3
  • 2
    Seems very simple solution to me; just that as of webpack v3.5.5 it has built-in switch called --optimize-minimize or -p. Commented Sep 3, 2017 at 2:02
  • 1
    The idea is cool, but not work now, webpack will yell "Unknown argument: minimize" Solution: use --env.minimize more details in the following link github.com/webpack/webpack/issues/2254 Commented Dec 21, 2017 at 10:41
  • Can use more standard way to pass environment indication in webpack: stackoverflow.com/questions/44113359/… Commented Jan 8, 2018 at 20:20