This repository was archived by the owner on Sep 9, 2021. It is now read-only.
File tree 1 file changed +20
-1
lines changed
1 file changed +20
-1
lines changed Original file line number Diff line number Diff line change @@ -37,7 +37,20 @@ worker.addEventListener("message", function(event) {...});
37
37
38
38
You can also inline the worker as a blob with the ` inline ` parameter:
39
39
``` 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" );
41
54
```
42
55
43
56
@@ -92,6 +105,12 @@ _.has(o, 'foo') // true
92
105
</br>
93
106
<a href="https://github.com/TheLarkInn">Sean Larkin</a>
94
107
</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>
95
114
</tr>
96
115
<tbody >
97
116
</table >
You can’t perform that action at this time.
0 commit comments