Skip to content
This repository was archived by the owner on Sep 9, 2021. It is now read-only.

Commit 51d75e7

Browse files
committedFeb 25, 2017
Update docs features and maintainers
1 parent 23d2116 commit 51d75e7

File tree

1 file changed

+20
-1
lines changed

1 file changed

+20
-1
lines changed
 

‎README.md

+20-1
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,20 @@ worker.addEventListener("message", function(event) {...});
3737

3838
You can also inline the worker as a blob with the `inline` parameter:
3939
``` javascript
40-
var MyWorker = require("worker-loader?inline!./file.js");
40+
var MyWorker = require("worker-loader?inline!./myWorker.js");
41+
```
42+
43+
Inline mode will also create chunks for browsers without supporting of inline workers,
44+
to disable this behavior just set `fallback` parameter as `false`:
45+
46+
``` javascript
47+
var MyWorker = require("worker-loader?inline&fallback=false!./myWorker.js");
48+
```
49+
50+
To set custom name use the `name` parameter:
51+
52+
``` javascript
53+
var MyWorker = require("worker-loader?name=[name].js!./myWorker.js");
4154
```
4255

4356

@@ -92,6 +105,12 @@ _.has(o, 'foo') // true
92105
</br>
93106
<a href="https://github.com/TheLarkInn">Sean Larkin</a>
94107
</td>
108+
<td align="center">
109+
<img width="150" height="150"
110+
src="https://avatars3.githubusercontent.com/u/5635476?v=3&s=150">
111+
</br>
112+
<a href="https://github.com/TrySound">Bogdan Chadkin</a>
113+
</td>
95114
</tr>
96115
<tbody>
97116
</table>

0 commit comments

Comments
 (0)
This repository has been archived.