This repository was archived by the owner on Mar 22, 2019. It is now read-only.
forked from webpack/docs
-
Notifications
You must be signed in to change notification settings - Fork 0
list of loaders
Jorik Tangelder edited this page Feb 9, 2014
·
179 revisions
-
json: Loads file as JSON -
raw: Loads raw content of a file (as utf-8) -
bundle: Wraps request in arequire.ensureblock -
val: Executes code as module and consider exports as javascript code -
imports: imports stuff to the module -
exports: exports stuff from the module -
expose: expose exports from a module to the global context -
script: Executes a javascript file once in global context (like in script tag), requires are not parsed.
-
file: Emits the file into the output folder and returns the (relative) url. -
url: The url loader works like the file loader, but can return a Data Url if the file is smaller than a limit. -
worker: The worker loader creates a WebWorker for the provided file. The bundling of dependencies of the Worker is transparent.
-
coffee: Loads coffee-script like javascript -
coffee-redux: Loads coffee-script like javascript -
json5: Like json, but not so strict. -
es6-module: Loads ES6 modules. -
livescript: Loads LiveScript like javascript
-
html: Exports HTML as string, require references to static resources. -
jade: Loads jade template and returns a function -
jade-html: Loads jade template and returns generated HTML -
template-html: Loads any template with consolidate.js and returns generated HTML -
handlebars: Loads handlebars template and returns a function