
entry The entry point(s) of your application e.g./src/main.js. d, -devtool Determine source maps to use. j, -json Prints result as JSON or store it in a file. progress Print compilation progress during build. node-env Sets _ENV to the specified value. env Environment passed to the configuration when it is a function. m, -merge Merge two or more configurations using 'webpack-merge'. config-name Name of the configuration to use. c, -config Provide path to a webpack configuration file e.g./. analyze It invokes webpack-bundle-analyzer plugin to get bundle information Watch|w Run webpack and watch for files changes. Version|v Output the version number of 'webpack', 'webpack-cli' and 'webpack-dev-server' and commands. Serve|server|s Run the webpack dev server. Migrate|m Migrate a configuration to a new version.

Init|create|new|c|n Initialize a new webpack project. Info|i Outputs information about your system. Help|h Display help for commands and options. To display all supported commands and arguments - npx webpack-cli -help=verboseĪvailable Commands build|bundle|b Run webpack (default command, can be omitted).Ĭonfigtest|t Validate a webpack configuration. To display basic commands and arguments - npx webpack-cli -help If no command is specified then bundle command is used by default Help Usage
#Omni recover sirl install
Otherwise npm install -save-dev webpack-cliĪll interactions with webpack-cli are of the form npx webpack-cli When you have followed the Getting Started guide of webpack then webpack CLI is already installed! webpack CLI addresses these needs by providing a set of tools to improve the setup of custom webpack configuration. 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.

Webpack CLI provides a flexible set of commands for developers to increase speed when setting up a custom webpack project.
