On this page

    Out of the box, webpack only understands JavaScript and JSON. Loaders let it handle other file types by transforming their contents into modules that webpack can add to the dependency graph. See Concepts: Loaders for how they fit into a build.

    The loaders below are maintained by the webpack organization.

    LoaderDescription
    css-loaderResolve @import and url() in CSS the way import and require() are resolved
    style-loaderInject CSS into the DOM
    sass-loaderCompile Sass and SCSS to CSS
    less-loaderCompile Less to CSS
    stylus-loaderCompile Stylus to CSS
    postcss-loaderProcess CSS with PostCSS
    html-loaderExport HTML as a string and resolve its asset references
    coffee-loaderCompile CoffeeScript to JavaScript
    exports-loaderAdd exports to a module that does not define its own
    imports-loaderProvide global variables to a module that expects them
    expose-loaderExpose a module on the global object
    thread-loaderRun the loaders that follow it in a worker pool