You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/content/loaders/index.md
+43-43Lines changed: 43 additions & 43 deletions
Original file line number
Diff line number
Diff line change
@@ -11,71 +11,71 @@ contributors:
11
11
- anshumanv
12
12
---
13
13
14
-
webpack enables use of [loaders](/concepts/loaders)to preprocess files. This allows you to bundle any static resource way beyond JavaScript. You can easily write your own loaders using Node.js.
Loaders are activated by using `loadername!`prefixes in `require()` statements, or are automatically applied via regex from your webpack configuration – see [configuration](/concepts/loaders/#configuration).
-[`raw-loader`](/loaders/raw-loader)Loads raw content of a file (utf-8)
22
-
-[`val-loader`](/loaders/val-loader)Executes code as module and consider exports as JS code
23
-
-[`url-loader`](/loaders/url-loader)Works like the file loader, but can return a [data URL](https://tools.ietf.org/html/rfc2397) if the file is smaller than a limit
24
-
-[`file-loader`](/loaders/file-loader)Emits the file into the output folder and returns the (relative) URL
25
-
-[`ref-loader`](https://www.npmjs.com/package/ref-loader)Create dependencies between any files manually
-[`json5-loader`](/loaders/json5-loader)Loads and transpiles a [JSON 5](https://json5.org/)file
31
-
-[`cson-loader`](https://github.com/awnist/cson-loader)Loads and transpiles a [CSON](https://github.com/bevry/cson#what-is-cson)file
-[`babel-loader`](/loaders/babel-loader)Loads ES2015+ code and transpiles to ES5 using [Babel](https://babeljs.io/)
37
-
-[`buble-loader`](https://github.com/sairion/buble-loader)Loads ES2015+ code and transpiles to ES5 using [Bublé](https://buble.surge.sh/guide/)
38
-
-[`traceur-loader`](https://github.com/jupl/traceur-loader)Loads ES2015+ code and transpiles to ES5 using [Traceur](https://github.com/google/traceur-compiler#readme)
39
-
-[`ts-loader`](https://github.com/TypeStrong/ts-loader)Loads [TypeScript](https://www.typescriptlang.org/) 2.0+ like JavaScript
40
-
-[`coffee-loader`](/loaders/coffee-loader)Loads [CoffeeScript](http://coffeescript.org/) like JavaScript
41
-
-[`fengari-loader`](https://github.com/fengari-lua/fengari-loader/)Loads Lua code using [fengari](https://fengari.io/)
42
-
-[`elm-webpack-loader`](https://github.com/elm-community/elm-webpack-loader)Loads [Elm](https://elm-lang.org/) like JavaScript
-[`html-loader`](/loaders/html-loader)Exports HTML as string, require references to static resources
48
-
-[`pug-loader`](https://github.com/pugjs/pug-loader)Loads Pug and Jade templates and returns a function
49
-
-[`markdown-loader`](https://github.com/peerigon/markdown-loader)Compiles Markdown to HTML
50
-
-[`react-markdown-loader`](https://github.com/javiercf/react-markdown-loader)Compiles Markdown to a React Component using the markdown-parse parser
51
-
-[`posthtml-loader`](https://github.com/posthtml/posthtml-loader)Loads and transforms a HTML file using [PostHTML](https://github.com/posthtml/posthtml)
52
-
-[`handlebars-loader`](https://github.com/pcardune/handlebars-loader)Compiles Handlebars to HTML
53
-
-[`markup-inline-loader`](https://github.com/asnowwolf/markup-inline-loader)Inline SVG/MathML files to HTML. It’s useful when applying icon font or applying CSS animation to SVG.
54
-
-[`twig-loader`](https://github.com/zimmo-be/twig-loader)Compiles Twig templates and returns a function
55
-
-[`remark-loader`](https://github.com/webpack-contrib/remark-loader)Load markdown through `remark`with built-in image resolution
47
+
-[`html-loader`](/loaders/html-loader)将 HTML 导出为字符串,需要传入静态资源的引用路径
-[`posthtml-loader`](https://github.com/posthtml/posthtml-loader)使用 [PostHTML](https://github.com/posthtml/posthtml) 加载和转换 HTML 文件
52
+
-[`handlebars-loader`](https://github.com/pcardune/handlebars-loader)将 Handlebars 文件编译为 HTML
-[`vue-loader`](https://github.com/vuejs/vue-loader)Loads and compiles [Vue Components](https://vuejs.org/v2/guide/components.html)
76
-
-[`polymer-loader`](https://github.com/webpack-contrib/polymer-webpack-loader)Process HTML & CSS with preprocessor of choice and `require()` Web Components like first-class modules
77
-
-[`angular2-template-loader`](https://github.com/TheLarkInn/angular2-template-loader)Loads and compiles [Angular](https://angular.io/)Components
-[`polymer-loader`](https://github.com/webpack-contrib/polymer-webpack-loader)使用选择的预处理程序处理 HTML 和 CSS 以及使用 `require()`以模块的方式处理 Web Components
0 commit comments