added chunk output file to web-worker example

This commit is contained in:
Tobias Koppers 2013-02-24 10:13:24 +01:00
parent 85bda0d875
commit 7624615960
2 changed files with 79 additions and 0 deletions

View File

@ -132,6 +132,79 @@ onmessage = function(event) {
```
# js/1.[hash].worker.hs
``` javascript
webpackChunk([1], {
/***/ 1:
/*!*********************************************!*\
!*** ../require.context/templates ^\.\/.*$ ***!
\*********************************************/
/***/ function(module, exports, require) {
var map = {
"./a": 2,
"./a.js": 2,
"./b": 3,
"./b.js": 3,
"./c": 4,
"./c.js": 4
};
function webpackContext(req) {
return require(webpackContextResolve(req));
};
function webpackContextResolve(req) {
return map[req] || (function() { throw new Error("Cannot find module '" + req + "'.") }());
};
webpackContext.keys = function webpackContextKeys() {
return Object.keys(map);
};
webpackContext.resolve = webpackContextResolve;
module.exports = webpackContext;
/***/ },
/***/ 2:
/*!*****************************************!*\
!*** ../require.context/templates/a.js ***!
\*****************************************/
/***/ function(module, exports, require) {
module.exports = function() {
return "This text was generated by template A";
}
/***/ },
/***/ 3:
/*!*****************************************!*\
!*** ../require.context/templates/b.js ***!
\*****************************************/
/***/ function(module, exports, require) {
module.exports = function() {
return "This text was generated by template B";
}
/***/ },
/***/ 4:
/*!*****************************************!*\
!*** ../require.context/templates/c.js ***!
\*****************************************/
/***/ function(module, exports, require) {
module.exports = function() {
return "This text was generated by template C";
}
/***/ }
})
```
# Info
## Uncompressed

View File

@ -23,6 +23,12 @@
{{js/hash.worker.js}}
```
# js/1.[hash].worker.hs
``` javascript
{{js/1.hash.worker.js}}
```
# Info
## Uncompressed