zhaoshengjun / webpack-config

CLI tool to generate webpack.config.js
37 stars 1 forks source link

webpack-config: command not found #4

Closed weswithley closed 7 years ago

weswithley commented 7 years ago

Hi,

I'm trying to use this plugin. and the "npm i create-webpack-config" step is fine. ( i didn't use the global install ) but "webpack-config init" just shown "webpack-config: command not found" any idea about this?

Thanks a lot.

TotalLag commented 7 years ago

Hi,

The command will require that you install it globally. If you didn't install it globally, you'll have to create a "script" section inside package.json for npm to run "webpack-config init" since you installed it locally.

weswithley commented 7 years ago

ok, I got it, Thx.