robertknight / webpack-bundle-size-analyzer

A tool for finding out what contributes to the size of Webpack bundles

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Unknown command 'webpack'

mesqueeb opened this issue · comments

I get

Unknown command 'webpack'

Should webpack maybe be added as dependancy to webpack-bundle-size-analyzer?

webpack-bundle-size-analyzer analyzes the JSON output from a Webpack build, it doesn't directly use Webpack itself, so it is not a dependency.

If you have only installed Webpack locally in your project and not globally (eg. with npm install -g) then the command to invoke Webpack will be slightly different than the example given in the README: ./node_modules/.bin/webpack --json | webpack-bundle-size-analyzer. Is this the problem you ran into?

@robertknight thanks for your kind words. I'm trying to use in with a framework (quasar) that uses webpack under the hood. But i'm not sure how.