How To Install Webpack In Debian, Ubuntu, Kali And MacOS?
Maintainer: Debian Javascript Maintainers
Email: [email protected] .
Website: https://github.com/webpack/webpack
Section: javascript
Install webpack
-
Debian
apt-get install webpackClick to copy -
Ubuntu
apt-get install webpackClick to copy -
Kali Linux
apt-get install webpackClick to copy -
macOS
brew install webpackClick to copy
Bundle a web project's js files and other assets into a single output file.
How to use webpack?
Below are few example commands for webpack that you can use in the terminal.
Create a single output file from an entry point file:webpack app.js bundle.jsClick to copyLoad css files too from the js file (this uses the css loader for .css files):webpack app.js bundle.js --module-bind 'css=css'Click to copyPass a config file (with eg. the entry script and the output filename) and show compilation progress:webpack --config webpack.config.js --progressClick to copyAutomatically recompile on changes to project files:webpack --watch app.js bundle.jsClick to copy
Installing webpack command is simple. just copy one of the above commands for your operating system and paste it into terminal. This command is available for Debian, Ubuntu, Kali and macOS operating systems. Once you run the command it will install the latest version of webpack 2026 package in your OS.




