Loaders

Loaders are fundamental to Webpack and many of them enable greater functionality, particularly with scripts and frameworks that are not native ECMAScripts, such as JavaScript and JSON.

This chapter aims to give you a broad overview of the available loaders as well as some that you may need to buy. When working with a salient or unique code that is specific to your project, you should search the Webpack online registry to ensure that the code can be transpiled.

In particular, this section will discuss the following loaders:

  • cache-loader
  • coffee-loader
  • coffee-redux-loader
  • worker-loader
  • cover.js
  • i18n-loader
  • imports-loader
  • polymer-webpack-loader
  • script-loader
  • source-map-loader
  • less-loader

We'll discuss and give examples of each loader, where appropriate, although some may need no real elaboration. Let's begin with cache-loader.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
3.145.173.112