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?
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.
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.
Note: While you can install and run webpack-dev-server globally, we recommend installing it locally.
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With