v2: There’s no bundling + tree shaking without minify-ing?

As far as I understand last weeks.. There’s no way to make a bundle that will have “tree shaking” enabled without the minifying? It not looks cool to me. I tried bundling without minifying and it seems it is not tree-shaked.

Or if it is possible, how? Some examples? I’m talking for v2.

Author: Fantashit

2 thoughts on “v2: There’s no bundling + tree shaking without minify-ing?

  1. Omg, seriously. I know it is wokring, that’s not the case. The case is that I want tree-shaked bundles without minifying – intentionally.

    @sokra

    display information about

    What information? First it seems it does nothing for me, output is absolutely the same; Second don’t want “information”, I want real working bundle 😀

    ~/code/foobar master ✓ ✗  
    %% ❯ webpack --entry ./index.js --output-filename bundle.js --target node                               December 13, 16:58:04
    Hash: 9567831ddc533348d9a4
    Version: webpack 2.1.0-beta.27
    Time: 307ms
        Asset     Size  Chunks             Chunk Names
    bundle.js  29.7 kB       0  [emitted]  null
      [15] ./index.js 2.73 kB {0} [built]
        + 15 hidden modules
    ~/code/foobar master ✓ ✗  
    %% ❯ webpack --entry ./index.js --output-filename bundle.js --target node --display-used-exports        December 13, 16:58:38
    Hash: 9567831ddc533348d9a4
    Version: webpack 2.1.0-beta.27
    Time: 303ms
        Asset     Size  Chunks             Chunk Names
    bundle.js  29.7 kB       0  [emitted]  null
      [15] ./index.js 2.73 kB {0} [built]
        + 15 hidden modules
    ~/code/foobar master ✓ ✗  
    %% ❯

Comments are closed.