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: README.md
+20-13Lines changed: 20 additions & 13 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -192,17 +192,17 @@ See [example](/sokra/modules-webpack/tree/master/examples/loader).
192
192
193
193
The following loaders are included in webpack:
194
194
195
-
*`raw`: Loads raw content of a file (as utf-8)
196
-
*`json` (default at `.json`): Loads file as JSON
197
-
*`jade` (default at `.jade`): Loads jade template and returns a function
198
-
*`coffee` (default at `.coffee`): Loads coffee-script like javascript
199
-
*`css`: Loads css file with resolved imports and returns css code
200
-
*`less`: Loads and compiles a less file and returns css code
201
-
*`val`: Excutes code as module and consider exports as javascript code
202
-
*`bundle`: Wraps request in a `require.ensure` block
203
-
*`file`: Emits the file into the output folder and returns the (relative) url (`file/{ext}` for some extensions)
204
-
*`style`: Adds result of javascript execution to DOM
205
-
*`script`: Executes a javascript file once in global context (like in script tag), requires are not parsed. Use this to include a library. ex. `require("script!./jquery.min.js")`. This is synchron, so the `$` variable is available after require.
195
+
*[`raw`](https://github.com/sokra/webpack-raw-loader): Loads raw content of a file (as utf-8)
196
+
*[`json`](https://github.com/sokra/webpack-json-loader) (default at `.json`): Loads file as JSON
197
+
*[`jade`](https://github.com/sokra/webpack-jade-loader) (default at `.jade`): Loads jade template and returns a function
198
+
*[`coffee`](https://github.com/sokra/webpack-coffee-loader) (default at `.coffee`): Loads coffee-script like javascript
199
+
*[`css`](https://github.com/sokra/webpack-css-loader): Loads css file with resolved imports and returns css code
200
+
*[`less`](https://github.com/sokra/webpack-less-loader): Loads and compiles a less file and returns css code
201
+
*[`val`](https://github.com/sokra/webpack-val-loader): Excutes code as module and consider exports as javascript code
202
+
*[`bundle`](https://github.com/sokra/webpack-bundle-loader): Wraps request in a `require.ensure` block
203
+
*[`file`](https://github.com/sokra/webpack-file-loader): Emits the file into the output folder and returns the (relative) url (`file/{ext}` for some extensions)
204
+
*[`style`](https://github.com/sokra/webpack-style-loader): Adds result of javascript execution to DOM
205
+
*[`script`](https://github.com/sokra/webpack-script-loader): Executes a javascript file once in global context (like in script tag), requires are not parsed. Use this to include a library. ex. `require("script!./jquery.min.js")`. This is synchron, so the `$` variable is available after require.
206
206
* (`.css` defaults to `style!css` loader, so all css rules are added to DOM)
207
207
* (`.less` defaults to `style!css!val!less` loader, so all less rules are added to DOM)
208
208
@@ -471,7 +471,7 @@ else `stats` as json:
471
471
472
472
### File hash
473
473
474
-
You can use `[hash]` in `scriptSrcPrefix`, `output`, `outputDirectory`, `outputPostfix` and in the shell parameters.
474
+
You can use `[hash]` in `publicPrefix`, `output`, `outputDirectory`, `outputPostfix` and in the shell parameters.
475
475
`webpack` will replace it with a hash of your files, when writing.
476
476
477
477
### From shell
@@ -877,4 +877,11 @@ You are also welcome to correct any spelling mistakes or any language issues, be
877
877
878
878
## License
879
879
880
-
MIT (http://www.opensource.org/licenses/mit-license.php)
880
+
MIT (http://www.opensource.org/licenses/mit-license.php)
0 commit comments