Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

install webpack VS install webpack-cli?

What is the difference installing between the two? I installed webpack globally as said on the installation page then I moved to getting started it is said there to install webpack-cli locally. CLI = Command Line Interface, Does that mean webpack do not have cli so that I have to install webpack-cli?

like image 258
nono Avatar asked Aug 21 '18 11:08

nono


People also ask

What is webpack and webpack CLI?

webpack CLI provides a flexible set of commands for developers to increase speed when setting up a custom webpack project. As of webpack v4, webpack is not expecting a configuration file, but often developers want to create a more custom webpack configuration based on their use-cases and needs.

Does webpack need CLI?

If you're using webpack v4 or later and want to call webpack from the command line, you'll also need to install the CLI.

Should I install webpack globally?

Note: While you can install and run webpack-dev-server globally, we recommend installing it locally.


1 Answers

Since webpack version 4, the command line interface got removed from the main package and added to its own repo and package.

You are obliged to install a cli aside of webpack. CLI = command line interface, webpack = main functionalities.

like image 186
PlayMa256 Avatar answered Sep 18 '22 16:09

PlayMa256