webpack v1 is deprecated. We encourage all developers to upgrade to webpack 2.
Follow our migration guide or refer to webpack 2 documentation for more info.
extensionsemanticloader examples
.jsreturns module exportsbabel-loader
.tsreturns module exportsts-loader
.coffeereturns module exportscoffee-loader
coffee-redux-loader
.jsxreturns module exports (react component)jsx-loader
react-hot-loader!jsx-loader
.json
.json5
returns json valuejson-loader
json5-loader
.txtreturn string valueraw-loader
.cssreturns nothing, side effect of adding style to DOMstyle-loader!css-loader
style-loader!css-loader!autoprefixer-loader
.lessreturns nothing, side effect of adding style to DOMstyle-loader!css-loader!less-loader
.scssreturns nothing, side effect of adding style to DOMstyle-loader!css-loader!scss-loader
.stylreturns nothing, side effect of adding style to DOMstyle-loader!css-loader!stylus-loader
.png
.jpg
.jpeg
.gif
.svg
returns url to imagefile-loader
url-loader
.woff
.ttf
returns url to fontfile-loader
url-loader
.wav
.mp3
returns url to audiofile-loader
url-loader
.mpeg
.mp4
.webm
.ogv
returns url to videofile-loader
.htmlreturns HTML as stringhtml-loader
.md
.markdown
returns HTML as stringhtml-loader!markdown-loader
.pug
.jade
returns template functionpug-loader
.hbs
.handlebars
returns template functionhandlebars-loader
Fork me on GitHub