WebPack - Module


Javascript - Module in Webpack



Webpack modules support the following module dependency definition statement:

  • require() statement of CommonJS
  • define and require statement of an AMD
  • @import statement inside of a css/sass/less file.
  • An image url in a stylesheet (url(…)) or html (<img src=...>) file.


Webpack supports modules written in a variety of languages and preprocessors, via loaders.

Documentation / Reference

Discover More
WebPack - Hot Module Replacement

Hot Module Replacement is the live reloading of module functionality of WebPack.
WebPack - Loader

Loaders are used to import custom modules definition.

Share this page:
Follow us:
Task Runner