Forrest logo
back to context overview

webpack

List of commands for webpack:

  • webpack:tldr:16b0f webpack: Pass a config file (with e.g. the entry script and the output filename) and show compilation progress.
    $ webpack --config ${webpack-config-js} --progress
    try on your machine
    explain this command
  • webpack:tldr:442b6 webpack: Automatically recompile on changes to project files.
    $ webpack --watch ${app-js} ${bundle-js}
    try on your machine
    explain this command
  • webpack:tldr:e68b6 webpack: Create a single output file from an entry point file.
    $ webpack ${app-js} ${bundle-js}
    try on your machine
    explain this command
  • webpack:tldr:f28ab webpack: Load CSS files too from the JavaScript file (this uses the CSS loader for `.css` files).
    $ webpack ${app-js} ${bundle-js} --module-bind '${css=css}'
    try on your machine
    explain this command
back to context overview