Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

updated examples

  • Loading branch information...
commit a2fdd756c153c312a76570eed3b50c3b270c887f 1 parent b5b5cc9
Tobias Koppers sokra authored
252 examples/code-splitted-require.context-amd/README.md
View
@@ -17,107 +17,107 @@ getTemplate("b", function(b) {
# js/output.js
``` javascript
-(function(modules) { // webpackBootstrap
- // The module cache
- var installedModules = {};
-
- // object to store loaded and loading chunks
- // "0" means "already loaded"
- // Array means "loading", array contains callbacks
- var installedChunks = {0:0};
-
- // The require function
- function require(moduleId) {
- // Check if module is in cache
- if(installedModules[moduleId])
- return installedModules[moduleId].exports;
-
- // Create a new module (and put it into the cache)
- var module = installedModules[moduleId] = {
- exports: {},
- id: moduleId,
- loaded: false
- };
-
- // Execute the module function
- modules[moduleId].call(null, module, module.exports, require);
-
- // Flag the module as loaded
- module.loaded = true;
-
- // Return the exports of the module
- return module.exports;
- }
-
- // The bundle contains no chunks. A empty chunk loading function.
- require.e = function requireEnsure(chunkId, callback) {
- // "0" is the signal for "already loaded"
- if(installedChunks[chunkId] === 0)
- return callback.call(null, require);
-
- // an array means "currently loading".
- if(installedChunks[chunkId] !== undefined) {
- installedChunks[chunkId].push(callback);
- } else {
- // start chunk loading
- installedChunks[chunkId] = [callback];
- var head = document.getElementsByTagName('head')[0];
- var script = document.createElement('script');
- script.type = 'text/javascript';
- script.charset = 'utf-8';
- script.src = modules.c + "" + chunkId + ".output.js";
- head.appendChild(script);
- }
- };
-
- // expose the modules object (__webpack_modules__)
- require.modules = modules;
-
- // expose the module cache
- require.cache = installedModules;
-
- // install a JSONP callback for chunk loading
- window["webpackJsonp"] = function webpackJsonpCallback(chunkIds, moreModules) {
- // add "moreModules" to the modules object,
- // then flag all "chunkIds" as loaded and fire callback
- var moduleId, chunkId, callbacks = [];
- while(chunkIds.length) {
- chunkId = chunkIds.shift();
- if(installedChunks[chunkId])
- callbacks.push.apply(callbacks, installedChunks[chunkId]);
- installedChunks[chunkId] = 0;
- }
- for(moduleId in moreModules)
- modules[moduleId] = moreModules[moduleId];
- while(callbacks.length)
- callbacks.shift().call(null, require);
- };
-
- // Load entry module and return exports
- return require(0);
-})
+/******/(function(modules) { // webpackBootstrap
+/******/ // The module cache
+/******/ var installedModules = {};
+/******/
+/******/ // object to store loaded and loading chunks
+/******/ // "0" means "already loaded"
+/******/ // Array means "loading", array contains callbacks
+/******/ var installedChunks = {0:0};
+/******/
+/******/ // The require function
+/******/ function require(moduleId) {
+/******/ // Check if module is in cache
+/******/ if(installedModules[moduleId])
+/******/ return installedModules[moduleId].exports;
+/******/
+/******/ // Create a new module (and put it into the cache)
+/******/ var module = installedModules[moduleId] = {
+/******/ exports: {},
+/******/ id: moduleId,
+/******/ loaded: false
+/******/ };
+/******/
+/******/ // Execute the module function
+/******/ modules[moduleId].call(null, module, module.exports, require);
+/******/
+/******/ // Flag the module as loaded
+/******/ module.loaded = true;
+/******/
+/******/ // Return the exports of the module
+/******/ return module.exports;
+/******/ }
+/******/
+/******/ // The bundle contains no chunks. A empty chunk loading function.
+/******/ require.e = function requireEnsure(chunkId, callback) {
+/******/ // "0" is the signal for "already loaded"
+/******/ if(installedChunks[chunkId] === 0)
+/******/ return callback.call(null, require);
+/******/
+/******/ // an array means "currently loading".
+/******/ if(installedChunks[chunkId] !== undefined) {
+/******/ installedChunks[chunkId].push(callback);
+/******/ } else {
+/******/ // start chunk loading
+/******/ installedChunks[chunkId] = [callback];
+/******/ var head = document.getElementsByTagName('head')[0];
+/******/ var script = document.createElement('script');
+/******/ script.type = 'text/javascript';
+/******/ script.charset = 'utf-8';
+/******/ script.src = modules.c + "" + chunkId + ".output.js";
+/******/ head.appendChild(script);
+/******/ }
+/******/ };
+/******/
+/******/ // expose the modules object (__webpack_modules__)
+/******/ require.modules = modules;
+/******/
+/******/ // expose the module cache
+/******/ require.cache = installedModules;
+/******/
+/******/ // install a JSONP callback for chunk loading
+/******/ window["webpackJsonp"] = function webpackJsonpCallback(chunkIds, moreModules) {
+/******/ // add "moreModules" to the modules object,
+/******/ // then flag all "chunkIds" as loaded and fire callback
+/******/ var moduleId, chunkId, callbacks = [];
+/******/ while(chunkIds.length) {
+/******/ chunkId = chunkIds.shift();
+/******/ if(installedChunks[chunkId])
+/******/ callbacks.push.apply(callbacks, installedChunks[chunkId]);
+/******/ installedChunks[chunkId] = 0;
+/******/ }
+/******/ for(moduleId in moreModules)
+/******/ modules[moduleId] = moreModules[moduleId];
+/******/ while(callbacks.length)
+/******/ callbacks.shift().call(null, require);
+/******/ };
+/******/
+/******/ // Load entry module and return exports
+/******/ return require(0);
+/******/})
/************************************************************************/
({
// __webpack_public_path__
-
c: "",
+
/***/ 0:
/*!********************!*\
!*** ./example.js ***!
\********************/
/***/ function(module, exports, require) {
-function getTemplate(templateName, callback) {
- require.e/* require */(1, function(require) { var __WEBPACK_AMD_REQUIRE_ARRAY__ = [require(/*! ../require.context/templates */ 1)("./"+templateName)]; (function(tmpl) {
- callback(tmpl());
- }.apply(null, __WEBPACK_AMD_REQUIRE_ARRAY__));});
-}
-getTemplate("a", function(a) {
- console.log(a);
-});
-getTemplate("b", function(b) {
- console.log(b);
-});
+ function getTemplate(templateName, callback) {
+ require.e/* require */(1, function(require) { var __WEBPACK_AMD_REQUIRE_ARRAY__ = [require(/*! ../require.context/templates */ 1)("./"+templateName)]; (function(tmpl) {
+ callback(tmpl());
+ }.apply(null, __WEBPACK_AMD_REQUIRE_ARRAY__));});
+ }
+ getTemplate("a", function(a) {
+ console.log(a);
+ });
+ getTemplate("b", function(b) {
+ console.log(b);
+ });
/***/ }
})
@@ -135,26 +135,26 @@ webpackJsonp([1],
\*********************************************/
/***/ 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;
-
+ 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;
+
/***/ },
@@ -164,9 +164,9 @@ module.exports = webpackContext;
\*****************************************/
/***/ function(module, exports, require) {
-module.exports = function() {
- return "This text was generated by template A";
-}
+ module.exports = function() {
+ return "This text was generated by template A";
+ }
/***/ },
@@ -176,9 +176,9 @@ module.exports = function() {
\*****************************************/
/***/ function(module, exports, require) {
-module.exports = function() {
- return "This text was generated by template B";
-}
+ module.exports = function() {
+ return "This text was generated by template B";
+ }
/***/ },
@@ -188,9 +188,9 @@ module.exports = function() {
\*****************************************/
/***/ function(module, exports, require) {
-module.exports = function() {
- return "This text was generated by template C";
-}
+ module.exports = function() {
+ return "This text was generated by template C";
+ }
/***/ }
@@ -204,11 +204,11 @@ module.exports = function() {
```
Hash: 7a6425e8fe46dc01a0db9eee1a97caca
-Version: webpack 0.10.0-beta3
-Time: 56ms
+Version: webpack 0.10.0-beta4
+Time: 54ms
Asset Size Chunks Chunk Names
- output.js 3016 0 main
-1.output.js 1567 1
+ output.js 3659 0 main
+1.output.js 1596 1
chunk {0} output.js (main) 261
[0] ./example.js 261 [built] {0}
chunk {1} 1.output.js 463 {0}
@@ -229,8 +229,8 @@ chunk {1} 1.output.js 463 {0}
```
Hash: 7a6425e8fe46dc01a0db9eee1a97caca
-Version: webpack 0.10.0-beta3
-Time: 170ms
+Version: webpack 0.10.0-beta4
+Time: 169ms
Asset Size Chunks Chunk Names
output.js 831 0 main
1.output.js 531 1
248 examples/code-splitted-require.context/README.md
View
@@ -17,107 +17,107 @@ getTemplate("b", function(b) {
# js/output.js
``` javascript
-(function(modules) { // webpackBootstrap
- // The module cache
- var installedModules = {};
-
- // object to store loaded and loading chunks
- // "0" means "already loaded"
- // Array means "loading", array contains callbacks
- var installedChunks = {0:0};
-
- // The require function
- function require(moduleId) {
- // Check if module is in cache
- if(installedModules[moduleId])
- return installedModules[moduleId].exports;
-
- // Create a new module (and put it into the cache)
- var module = installedModules[moduleId] = {
- exports: {},
- id: moduleId,
- loaded: false
- };
-
- // Execute the module function
- modules[moduleId].call(null, module, module.exports, require);
-
- // Flag the module as loaded
- module.loaded = true;
-
- // Return the exports of the module
- return module.exports;
- }
-
- // The bundle contains no chunks. A empty chunk loading function.
- require.e = function requireEnsure(chunkId, callback) {
- // "0" is the signal for "already loaded"
- if(installedChunks[chunkId] === 0)
- return callback.call(null, require);
-
- // an array means "currently loading".
- if(installedChunks[chunkId] !== undefined) {
- installedChunks[chunkId].push(callback);
- } else {
- // start chunk loading
- installedChunks[chunkId] = [callback];
- var head = document.getElementsByTagName('head')[0];
- var script = document.createElement('script');
- script.type = 'text/javascript';
- script.charset = 'utf-8';
- script.src = modules.c + "" + chunkId + ".output.js";
- head.appendChild(script);
- }
- };
-
- // expose the modules object (__webpack_modules__)
- require.modules = modules;
-
- // expose the module cache
- require.cache = installedModules;
-
- // install a JSONP callback for chunk loading
- window["webpackJsonp"] = function webpackJsonpCallback(chunkIds, moreModules) {
- // add "moreModules" to the modules object,
- // then flag all "chunkIds" as loaded and fire callback
- var moduleId, chunkId, callbacks = [];
- while(chunkIds.length) {
- chunkId = chunkIds.shift();
- if(installedChunks[chunkId])
- callbacks.push.apply(callbacks, installedChunks[chunkId]);
- installedChunks[chunkId] = 0;
- }
- for(moduleId in moreModules)
- modules[moduleId] = moreModules[moduleId];
- while(callbacks.length)
- callbacks.shift().call(null, require);
- };
-
- // Load entry module and return exports
- return require(0);
-})
+/******/(function(modules) { // webpackBootstrap
+/******/ // The module cache
+/******/ var installedModules = {};
+/******/
+/******/ // object to store loaded and loading chunks
+/******/ // "0" means "already loaded"
+/******/ // Array means "loading", array contains callbacks
+/******/ var installedChunks = {0:0};
+/******/
+/******/ // The require function
+/******/ function require(moduleId) {
+/******/ // Check if module is in cache
+/******/ if(installedModules[moduleId])
+/******/ return installedModules[moduleId].exports;
+/******/
+/******/ // Create a new module (and put it into the cache)
+/******/ var module = installedModules[moduleId] = {
+/******/ exports: {},
+/******/ id: moduleId,
+/******/ loaded: false
+/******/ };
+/******/
+/******/ // Execute the module function
+/******/ modules[moduleId].call(null, module, module.exports, require);
+/******/
+/******/ // Flag the module as loaded
+/******/ module.loaded = true;
+/******/
+/******/ // Return the exports of the module
+/******/ return module.exports;
+/******/ }
+/******/
+/******/ // The bundle contains no chunks. A empty chunk loading function.
+/******/ require.e = function requireEnsure(chunkId, callback) {
+/******/ // "0" is the signal for "already loaded"
+/******/ if(installedChunks[chunkId] === 0)
+/******/ return callback.call(null, require);
+/******/
+/******/ // an array means "currently loading".
+/******/ if(installedChunks[chunkId] !== undefined) {
+/******/ installedChunks[chunkId].push(callback);
+/******/ } else {
+/******/ // start chunk loading
+/******/ installedChunks[chunkId] = [callback];
+/******/ var head = document.getElementsByTagName('head')[0];
+/******/ var script = document.createElement('script');
+/******/ script.type = 'text/javascript';
+/******/ script.charset = 'utf-8';
+/******/ script.src = modules.c + "" + chunkId + ".output.js";
+/******/ head.appendChild(script);
+/******/ }
+/******/ };
+/******/
+/******/ // expose the modules object (__webpack_modules__)
+/******/ require.modules = modules;
+/******/
+/******/ // expose the module cache
+/******/ require.cache = installedModules;
+/******/
+/******/ // install a JSONP callback for chunk loading
+/******/ window["webpackJsonp"] = function webpackJsonpCallback(chunkIds, moreModules) {
+/******/ // add "moreModules" to the modules object,
+/******/ // then flag all "chunkIds" as loaded and fire callback
+/******/ var moduleId, chunkId, callbacks = [];
+/******/ while(chunkIds.length) {
+/******/ chunkId = chunkIds.shift();
+/******/ if(installedChunks[chunkId])
+/******/ callbacks.push.apply(callbacks, installedChunks[chunkId]);
+/******/ installedChunks[chunkId] = 0;
+/******/ }
+/******/ for(moduleId in moreModules)
+/******/ modules[moduleId] = moreModules[moduleId];
+/******/ while(callbacks.length)
+/******/ callbacks.shift().call(null, require);
+/******/ };
+/******/
+/******/ // Load entry module and return exports
+/******/ return require(0);
+/******/})
/************************************************************************/
({
// __webpack_public_path__
-
c: "",
+
/***/ 0:
/*!********************!*\
!*** ./example.js ***!
\********************/
/***/ function(module, exports, require) {
-function getTemplate(templateName, callback) {
- require.e/*nsure*/(1, function(require) {
- callback(require(/*! ../require.context/templates */ 1)("./"+templateName)());
+ function getTemplate(templateName, callback) {
+ require.e/*nsure*/(1, function(require) {
+ callback(require(/*! ../require.context/templates */ 1)("./"+templateName)());
+ });
+ }
+ getTemplate("a", function(a) {
+ console.log(a);
+ });
+ getTemplate("b", function(b) {
+ console.log(b);
});
-}
-getTemplate("a", function(a) {
- console.log(a);
-});
-getTemplate("b", function(b) {
- console.log(b);
-});
/***/ }
})
@@ -135,26 +135,26 @@ webpackJsonp([1],
\*********************************************/
/***/ 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;
-
+ 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;
+
/***/ },
@@ -164,9 +164,9 @@ module.exports = webpackContext;
\*****************************************/
/***/ function(module, exports, require) {
-module.exports = function() {
- return "This text was generated by template A";
-}
+ module.exports = function() {
+ return "This text was generated by template A";
+ }
/***/ },
@@ -176,9 +176,9 @@ module.exports = function() {
\*****************************************/
/***/ function(module, exports, require) {
-module.exports = function() {
- return "This text was generated by template B";
-}
+ module.exports = function() {
+ return "This text was generated by template B";
+ }
/***/ },
@@ -188,9 +188,9 @@ module.exports = function() {
\*****************************************/
/***/ function(module, exports, require) {
-module.exports = function() {
- return "This text was generated by template C";
-}
+ module.exports = function() {
+ return "This text was generated by template C";
+ }
/***/ }
@@ -204,11 +204,11 @@ module.exports = function() {
```
Hash: bfc8a0c89870057a328ac4537518a669
-Version: webpack 0.10.0-beta3
+Version: webpack 0.10.0-beta4
Time: 55ms
Asset Size Chunks Chunk Names
- output.js 2904 0 main
-1.output.js 1567 1
+ output.js 3547 0 main
+1.output.js 1596 1
chunk {0} output.js (main) 276
[0] ./example.js 276 [built] {0}
chunk {1} 1.output.js 463 {0}
@@ -229,8 +229,8 @@ chunk {1} 1.output.js 463 {0}
```
Hash: bfc8a0c89870057a328ac4537518a669
-Version: webpack 0.10.0-beta3
-Time: 168ms
+Version: webpack 0.10.0-beta4
+Time: 157ms
Asset Size Chunks Chunk Names
output.js 792 0 main
1.output.js 531 1
206 examples/code-splitting-bundle-loader/README.md
View
@@ -16,99 +16,99 @@ module.exports = "It works";
# js/output.js
``` javascript
-(function(modules) { // webpackBootstrap
- // The module cache
- var installedModules = {};
-
- // object to store loaded and loading chunks
- // "0" means "already loaded"
- // Array means "loading", array contains callbacks
- var installedChunks = {0:0};
-
- // The require function
- function require(moduleId) {
- // Check if module is in cache
- if(installedModules[moduleId])
- return installedModules[moduleId].exports;
-
- // Create a new module (and put it into the cache)
- var module = installedModules[moduleId] = {
- exports: {},
- id: moduleId,
- loaded: false
- };
-
- // Execute the module function
- modules[moduleId].call(null, module, module.exports, require);
-
- // Flag the module as loaded
- module.loaded = true;
-
- // Return the exports of the module
- return module.exports;
- }
-
- // The bundle contains no chunks. A empty chunk loading function.
- require.e = function requireEnsure(chunkId, callback) {
- // "0" is the signal for "already loaded"
- if(installedChunks[chunkId] === 0)
- return callback.call(null, require);
-
- // an array means "currently loading".
- if(installedChunks[chunkId] !== undefined) {
- installedChunks[chunkId].push(callback);
- } else {
- // start chunk loading
- installedChunks[chunkId] = [callback];
- var head = document.getElementsByTagName('head')[0];
- var script = document.createElement('script');
- script.type = 'text/javascript';
- script.charset = 'utf-8';
- script.src = modules.c + "" + chunkId + ".output.js";
- head.appendChild(script);
- }
- };
-
- // expose the modules object (__webpack_modules__)
- require.modules = modules;
-
- // expose the module cache
- require.cache = installedModules;
-
- // install a JSONP callback for chunk loading
- window["webpackJsonp"] = function webpackJsonpCallback(chunkIds, moreModules) {
- // add "moreModules" to the modules object,
- // then flag all "chunkIds" as loaded and fire callback
- var moduleId, chunkId, callbacks = [];
- while(chunkIds.length) {
- chunkId = chunkIds.shift();
- if(installedChunks[chunkId])
- callbacks.push.apply(callbacks, installedChunks[chunkId]);
- installedChunks[chunkId] = 0;
- }
- for(moduleId in moreModules)
- modules[moduleId] = moreModules[moduleId];
- while(callbacks.length)
- callbacks.shift().call(null, require);
- };
-
- // Load entry module and return exports
- return require(0);
-})
+/******/(function(modules) { // webpackBootstrap
+/******/ // The module cache
+/******/ var installedModules = {};
+/******/
+/******/ // object to store loaded and loading chunks
+/******/ // "0" means "already loaded"
+/******/ // Array means "loading", array contains callbacks
+/******/ var installedChunks = {0:0};
+/******/
+/******/ // The require function
+/******/ function require(moduleId) {
+/******/ // Check if module is in cache
+/******/ if(installedModules[moduleId])
+/******/ return installedModules[moduleId].exports;
+/******/
+/******/ // Create a new module (and put it into the cache)
+/******/ var module = installedModules[moduleId] = {
+/******/ exports: {},
+/******/ id: moduleId,
+/******/ loaded: false
+/******/ };
+/******/
+/******/ // Execute the module function
+/******/ modules[moduleId].call(null, module, module.exports, require);
+/******/
+/******/ // Flag the module as loaded
+/******/ module.loaded = true;
+/******/
+/******/ // Return the exports of the module
+/******/ return module.exports;
+/******/ }
+/******/
+/******/ // The bundle contains no chunks. A empty chunk loading function.
+/******/ require.e = function requireEnsure(chunkId, callback) {
+/******/ // "0" is the signal for "already loaded"
+/******/ if(installedChunks[chunkId] === 0)
+/******/ return callback.call(null, require);
+/******/
+/******/ // an array means "currently loading".
+/******/ if(installedChunks[chunkId] !== undefined) {
+/******/ installedChunks[chunkId].push(callback);
+/******/ } else {
+/******/ // start chunk loading
+/******/ installedChunks[chunkId] = [callback];
+/******/ var head = document.getElementsByTagName('head')[0];
+/******/ var script = document.createElement('script');
+/******/ script.type = 'text/javascript';
+/******/ script.charset = 'utf-8';
+/******/ script.src = modules.c + "" + chunkId + ".output.js";
+/******/ head.appendChild(script);
+/******/ }
+/******/ };
+/******/
+/******/ // expose the modules object (__webpack_modules__)
+/******/ require.modules = modules;
+/******/
+/******/ // expose the module cache
+/******/ require.cache = installedModules;
+/******/
+/******/ // install a JSONP callback for chunk loading
+/******/ window["webpackJsonp"] = function webpackJsonpCallback(chunkIds, moreModules) {
+/******/ // add "moreModules" to the modules object,
+/******/ // then flag all "chunkIds" as loaded and fire callback
+/******/ var moduleId, chunkId, callbacks = [];
+/******/ while(chunkIds.length) {
+/******/ chunkId = chunkIds.shift();
+/******/ if(installedChunks[chunkId])
+/******/ callbacks.push.apply(callbacks, installedChunks[chunkId]);
+/******/ installedChunks[chunkId] = 0;
+/******/ }
+/******/ for(moduleId in moreModules)
+/******/ modules[moduleId] = moreModules[moduleId];
+/******/ while(callbacks.length)
+/******/ callbacks.shift().call(null, require);
+/******/ };
+/******/
+/******/ // Load entry module and return exports
+/******/ return require(0);
+/******/})
/************************************************************************/
({
// __webpack_public_path__
-
c: "",
+
/***/ 0:
/*!********************!*\
!*** ./example.js ***!
\********************/
/***/ function(module, exports, require) {
-require(/*! bundle!./file.js */ 1)(function(fileJsExports) {
- console.log(fileJsExports);
-});
+ require(/*! bundle!./file.js */ 1)(function(fileJsExports) {
+ console.log(fileJsExports);
+ });
/***/ },
@@ -118,20 +118,20 @@ require(/*! bundle!./file.js */ 1)(function(fileJsExports) {
\************************************************************************************/
/***/ function(module, exports, require) {
-var cbs = [],
- data;
-module.exports = function(cb) {
- if(cbs) cbs.push(cb);
- else cb(data);
-}
-require.e/*nsure*/(1, function(require) {
- data = require(/*! !./file.js */ 2);
- var callbacks = cbs;
- cbs = null;
- for(var i = 0, l = callbacks.length; i < l; i++) {
- callbacks[i](data);
+ var cbs = [],
+ data;
+ module.exports = function(cb) {
+ if(cbs) cbs.push(cb);
+ else cb(data);
}
-});
+ require.e/*nsure*/(1, function(require) {
+ data = require(/*! !./file.js */ 2);
+ var callbacks = cbs;
+ cbs = null;
+ for(var i = 0, l = callbacks.length; i < l; i++) {
+ callbacks[i](data);
+ }
+ });
/***/ }
})
@@ -149,7 +149,7 @@ webpackJsonp([1],
\*****************/
/***/ function(module, exports, require) {
-module.exports = "It works";
+ module.exports = "It works";
/***/ }
@@ -163,11 +163,11 @@ module.exports = "It works";
```
Hash: d75e46ac811b482356205a47ab1dc1c0
-Version: webpack 0.10.0-beta3
-Time: 71ms
+Version: webpack 0.10.0-beta4
+Time: 58ms
Asset Size Chunks Chunk Names
- output.js 3332 0 main
-1.output.js 184 1
+ output.js 3981 0 main
+1.output.js 185 1
chunk {0} output.js (main) 486
[0] ./example.js 88 [built] {0}
[1] (webpack)/~/bundle-loader!./file.js 398 [built] {0}
@@ -181,8 +181,8 @@ chunk {1} 1.output.js 28 {0}
```
Hash: d75e46ac811b482356205a47ab1dc1c0
-Version: webpack 0.10.0-beta3
-Time: 156ms
+Version: webpack 0.10.0-beta4
+Time: 174ms
Asset Size Chunks Chunk Names
output.js 853 0 main
1.output.js 56 1
192 examples/code-splitting/README.md
View
@@ -13,102 +13,102 @@ require.ensure(["c"], function(require) {
# js/output.js
``` javascript
-(function(modules) { // webpackBootstrap
- // The module cache
- var installedModules = {};
-
- // object to store loaded and loading chunks
- // "0" means "already loaded"
- // Array means "loading", array contains callbacks
- var installedChunks = {0:0};
-
- // The require function
- function require(moduleId) {
- // Check if module is in cache
- if(installedModules[moduleId])
- return installedModules[moduleId].exports;
-
- // Create a new module (and put it into the cache)
- var module = installedModules[moduleId] = {
- exports: {},
- id: moduleId,
- loaded: false
- };
-
- // Execute the module function
- modules[moduleId].call(null, module, module.exports, require);
-
- // Flag the module as loaded
- module.loaded = true;
-
- // Return the exports of the module
- return module.exports;
- }
-
- // The bundle contains no chunks. A empty chunk loading function.
- require.e = function requireEnsure(chunkId, callback) {
- // "0" is the signal for "already loaded"
- if(installedChunks[chunkId] === 0)
- return callback.call(null, require);
-
- // an array means "currently loading".
- if(installedChunks[chunkId] !== undefined) {
- installedChunks[chunkId].push(callback);
- } else {
- // start chunk loading
- installedChunks[chunkId] = [callback];
- var head = document.getElementsByTagName('head')[0];
- var script = document.createElement('script');
- script.type = 'text/javascript';
- script.charset = 'utf-8';
- script.src = modules.c + "" + chunkId + ".output.js";
- head.appendChild(script);
- }
- };
-
- // expose the modules object (__webpack_modules__)
- require.modules = modules;
-
- // expose the module cache
- require.cache = installedModules;
-
- // install a JSONP callback for chunk loading
- window["webpackJsonp"] = function webpackJsonpCallback(chunkIds, moreModules) {
- // add "moreModules" to the modules object,
- // then flag all "chunkIds" as loaded and fire callback
- var moduleId, chunkId, callbacks = [];
- while(chunkIds.length) {
- chunkId = chunkIds.shift();
- if(installedChunks[chunkId])
- callbacks.push.apply(callbacks, installedChunks[chunkId]);
- installedChunks[chunkId] = 0;
- }
- for(moduleId in moreModules)
- modules[moduleId] = moreModules[moduleId];
- while(callbacks.length)
- callbacks.shift().call(null, require);
- };
-
- // Load entry module and return exports
- return require(0);
-})
+/******/(function(modules) { // webpackBootstrap
+/******/ // The module cache
+/******/ var installedModules = {};
+/******/
+/******/ // object to store loaded and loading chunks
+/******/ // "0" means "already loaded"
+/******/ // Array means "loading", array contains callbacks
+/******/ var installedChunks = {0:0};
+/******/
+/******/ // The require function
+/******/ function require(moduleId) {
+/******/ // Check if module is in cache
+/******/ if(installedModules[moduleId])
+/******/ return installedModules[moduleId].exports;
+/******/
+/******/ // Create a new module (and put it into the cache)
+/******/ var module = installedModules[moduleId] = {
+/******/ exports: {},
+/******/ id: moduleId,
+/******/ loaded: false
+/******/ };
+/******/
+/******/ // Execute the module function
+/******/ modules[moduleId].call(null, module, module.exports, require);
+/******/
+/******/ // Flag the module as loaded
+/******/ module.loaded = true;
+/******/
+/******/ // Return the exports of the module
+/******/ return module.exports;
+/******/ }
+/******/
+/******/ // The bundle contains no chunks. A empty chunk loading function.
+/******/ require.e = function requireEnsure(chunkId, callback) {
+/******/ // "0" is the signal for "already loaded"
+/******/ if(installedChunks[chunkId] === 0)
+/******/ return callback.call(null, require);
+/******/
+/******/ // an array means "currently loading".
+/******/ if(installedChunks[chunkId] !== undefined) {
+/******/ installedChunks[chunkId].push(callback);
+/******/ } else {
+/******/ // start chunk loading
+/******/ installedChunks[chunkId] = [callback];
+/******/ var head = document.getElementsByTagName('head')[0];
+/******/ var script = document.createElement('script');
+/******/ script.type = 'text/javascript';
+/******/ script.charset = 'utf-8';
+/******/ script.src = modules.c + "" + chunkId + ".output.js";
+/******/ head.appendChild(script);
+/******/ }
+/******/ };
+/******/
+/******/ // expose the modules object (__webpack_modules__)
+/******/ require.modules = modules;
+/******/
+/******/ // expose the module cache
+/******/ require.cache = installedModules;
+/******/
+/******/ // install a JSONP callback for chunk loading
+/******/ window["webpackJsonp"] = function webpackJsonpCallback(chunkIds, moreModules) {
+/******/ // add "moreModules" to the modules object,
+/******/ // then flag all "chunkIds" as loaded and fire callback
+/******/ var moduleId, chunkId, callbacks = [];
+/******/ while(chunkIds.length) {
+/******/ chunkId = chunkIds.shift();
+/******/ if(installedChunks[chunkId])
+/******/ callbacks.push.apply(callbacks, installedChunks[chunkId]);
+/******/ installedChunks[chunkId] = 0;
+/******/ }
+/******/ for(moduleId in moreModules)
+/******/ modules[moduleId] = moreModules[moduleId];
+/******/ while(callbacks.length)
+/******/ callbacks.shift().call(null, require);
+/******/ };
+/******/
+/******/ // Load entry module and return exports
+/******/ return require(0);
+/******/})
/************************************************************************/
({
// __webpack_public_path__
-
c: "",
+
/***/ 0:
/*!********************!*\
!*** ./example.js ***!
\********************/
/***/ function(module, exports, require) {
-var a = require(/*! a */ 2);
-var b = require(/*! b */ 1);
-require.e/*nsure*/(1, function(require) {
- require(/*! b */ 1).xyz();
- var d = require(/*! d */ 4);
-});
+ var a = require(/*! a */ 2);
+ var b = require(/*! b */ 1);
+ require.e/*nsure*/(1, function(require) {
+ require(/*! b */ 1).xyz();
+ var d = require(/*! d */ 4);
+ });
/***/ },
@@ -118,7 +118,7 @@ require.e/*nsure*/(1, function(require) {
\****************/
/***/ function(module, exports, require) {
-// module b
+ // module b
/***/ },
@@ -128,7 +128,7 @@ require.e/*nsure*/(1, function(require) {
\****************/
/***/ function(module, exports, require) {
-// module a
+ // module a
/***/ }
})
@@ -146,7 +146,7 @@ webpackJsonp([1],
\****************/
/***/ function(module, exports, require) {
-// module c
+ // module c
/***/ },
@@ -156,7 +156,7 @@ webpackJsonp([1],
\****************/
/***/ function(module, exports, require) {
-// module d
+ // module d
/***/ }
@@ -176,11 +176,11 @@ webpackJsonp([1],{3:function(){},4:function(){}});
```
Hash: 5543ff7619209e2d2e8aeebc12be7462
-Version: webpack 0.10.0-beta3
-Time: 44ms
+Version: webpack 0.10.0-beta4
+Time: 45ms
Asset Size Chunks Chunk Names
- output.js 3067 0 main
-1.output.js 305 1
+ output.js 3707 0 main
+1.output.js 307 1
chunk {0} output.js (main) 166
[0] ./example.js 144 [built] {0}
[1] ./~/b.js 11 [built] {0}
@@ -199,8 +199,8 @@ chunk {1} 1.output.js 22 {0}
```
Hash: 5543ff7619209e2d2e8aeebc12be7462
-Version: webpack 0.10.0-beta3
-Time: 133ms
+Version: webpack 0.10.0-beta4
+Time: 132ms
Asset Size Chunks Chunk Names
output.js 744 0 main
1.output.js 50 1
122 examples/coffee-script/README.md
View
@@ -26,61 +26,61 @@ module.exports = 42
# js/output.js
``` javascript
-(function(modules) { // webpackBootstrap
- // The module cache
- var installedModules = {};
-
- // The require function
- function require(moduleId) {
- // Check if module is in cache
- if(installedModules[moduleId])
- return installedModules[moduleId].exports;
-
- // Create a new module (and put it into the cache)
- var module = installedModules[moduleId] = {
- exports: {},
- id: moduleId,
- loaded: false
- };
-
- // Execute the module function
- modules[moduleId].call(null, module, module.exports, require);
-
- // Flag the module as loaded
- module.loaded = true;
-
- // Return the exports of the module
- return module.exports;
- }
-
- // This file contains only the entry chunk.
- // The chunk loading function for additional chunks
- require.e = function requireEnsure(_, callback) {
- callback.call(null, require);
- };
-
- // expose the modules object (__webpack_modules__)
- require.modules = modules;
-
- // expose the module cache
- require.cache = installedModules;
-
-
- // Load entry module and return exports
- return require(0);
-})
+/******/(function(modules) { // webpackBootstrap
+/******/ // The module cache
+/******/ var installedModules = {};
+/******/
+/******/ // The require function
+/******/ function require(moduleId) {
+/******/ // Check if module is in cache
+/******/ if(installedModules[moduleId])
+/******/ return installedModules[moduleId].exports;
+/******/
+/******/ // Create a new module (and put it into the cache)
+/******/ var module = installedModules[moduleId] = {
+/******/ exports: {},
+/******/ id: moduleId,
+/******/ loaded: false
+/******/ };
+/******/
+/******/ // Execute the module function
+/******/ modules[moduleId].call(null, module, module.exports, require);
+/******/
+/******/ // Flag the module as loaded
+/******/ module.loaded = true;
+/******/
+/******/ // Return the exports of the module
+/******/ return module.exports;
+/******/ }
+/******/
+/******/ // This file contains only the entry chunk.
+/******/ // The chunk loading function for additional chunks
+/******/ require.e = function requireEnsure(_, callback) {
+/******/ callback.call(null, require);
+/******/ };
+/******/
+/******/ // expose the modules object (__webpack_modules__)
+/******/ require.modules = modules;
+/******/
+/******/ // expose the module cache
+/******/ require.cache = installedModules;
+/******/
+/******/
+/******/ // Load entry module and return exports
+/******/ return require(0);
+/******/})
/************************************************************************/
({
// __webpack_public_path__
-
c: "",
+
/***/ 0:
/*!********************!*\
!*** ./example.js ***!
\********************/
/***/ function(module, exports, require) {
-console.log(require(/*! ./cup1 */ 2));
+ console.log(require(/*! ./cup1 */ 2));
/***/ },
@@ -90,10 +90,10 @@ console.log(require(/*! ./cup1 */ 2));
\*********************/
/***/ function(module, exports, require) {
-console.log("yeah coffee-script");
-
-module.exports = 42;
-
+ console.log("yeah coffee-script");
+
+ module.exports = 42;
+
/***/ },
@@ -103,13 +103,13 @@ module.exports = 42;
\*********************/
/***/ function(module, exports, require) {
-module.exports = {
- cool: "stuff",
- answer: 42,
- external: require(/*! ./cup2.coffee */ 1),
- again: require(/*! ./cup2 */ 1)
-};
-
+ module.exports = {
+ cool: "stuff",
+ answer: 42,
+ external: require(/*! ./cup2.coffee */ 1),
+ again: require(/*! ./cup2 */ 1)
+ };
+
/***/ }
})
@@ -121,10 +121,10 @@ module.exports = {
```
Hash: 5394516f6bbce8cc020e6c170fd62636
-Version: webpack 0.10.0-beta3
-Time: 178ms
+Version: webpack 0.10.0-beta4
+Time: 177ms
Asset Size Chunks Chunk Names
-output.js 1818 0 main
+output.js 2174 0 main
chunk {0} output.js (main) 206
[0] ./example.js 31 [built] {0}
[1] ./cup2.coffee 57 [built] {0}
@@ -138,8 +138,8 @@ chunk {0} output.js (main) 206
```
Hash: 5394516f6bbce8cc020e6c170fd62636
-Version: webpack 0.10.0-beta3
-Time: 231ms
+Version: webpack 0.10.0-beta4
+Time: 228ms
Asset Size Chunks Chunk Names
output.js 418 0 main
chunk {0} output.js (main) 206
126 examples/commonjs/README.md
View
@@ -31,63 +31,63 @@ exports.add = function() {
# js/output.js
``` javascript
-(function(modules) { // webpackBootstrap
- // The module cache
- var installedModules = {};
-
- // The require function
- function require(moduleId) {
- // Check if module is in cache
- if(installedModules[moduleId])
- return installedModules[moduleId].exports;
-
- // Create a new module (and put it into the cache)
- var module = installedModules[moduleId] = {
- exports: {},
- id: moduleId,
- loaded: false
- };
-
- // Execute the module function
- modules[moduleId].call(null, module, module.exports, require);
-
- // Flag the module as loaded
- module.loaded = true;
-
- // Return the exports of the module
- return module.exports;
- }
-
- // This file contains only the entry chunk.
- // The chunk loading function for additional chunks
- require.e = function requireEnsure(_, callback) {
- callback.call(null, require);
- };
-
- // expose the modules object (__webpack_modules__)
- require.modules = modules;
-
- // expose the module cache
- require.cache = installedModules;
-
-
- // Load entry module and return exports
- return require(0);
-})
+/******/(function(modules) { // webpackBootstrap
+/******/ // The module cache
+/******/ var installedModules = {};
+/******/
+/******/ // The require function
+/******/ function require(moduleId) {
+/******/ // Check if module is in cache
+/******/ if(installedModules[moduleId])
+/******/ return installedModules[moduleId].exports;
+/******/
+/******/ // Create a new module (and put it into the cache)
+/******/ var module = installedModules[moduleId] = {
+/******/ exports: {},
+/******/ id: moduleId,
+/******/ loaded: false
+/******/ };
+/******/
+/******/ // Execute the module function
+/******/ modules[moduleId].call(null, module, module.exports, require);
+/******/
+/******/ // Flag the module as loaded
+/******/ module.loaded = true;
+/******/
+/******/ // Return the exports of the module
+/******/ return module.exports;
+/******/ }
+/******/
+/******/ // This file contains only the entry chunk.
+/******/ // The chunk loading function for additional chunks
+/******/ require.e = function requireEnsure(_, callback) {
+/******/ callback.call(null, require);
+/******/ };
+/******/
+/******/ // expose the modules object (__webpack_modules__)
+/******/ require.modules = modules;
+/******/
+/******/ // expose the module cache
+/******/ require.cache = installedModules;
+/******/
+/******/
+/******/ // Load entry module and return exports
+/******/ return require(0);
+/******/})
/************************************************************************/
({
// __webpack_public_path__
-
c: "",
+
/***/ 0:
/*!********************!*\
!*** ./example.js ***!
\********************/
/***/ function(module, exports, require) {
-var inc = require(/*! ./increment */ 1).increment;
-var a = 1;
-inc(a); // 2
+ var inc = require(/*! ./increment */ 1).increment;
+ var a = 1;
+ inc(a); // 2
/***/ },
@@ -97,10 +97,10 @@ inc(a); // 2
\**********************/
/***/ function(module, exports, require) {
-var add = require(/*! ./math */ 2).add;
-exports.increment = function(val) {
- return add(val, 1);
-};
+ var add = require(/*! ./math */ 2).add;
+ exports.increment = function(val) {
+ return add(val, 1);
+ };
/***/ },
@@ -110,13 +110,13 @@ exports.increment = function(val) {
\*****************/
/***/ function(module, exports, require) {
-exports.add = function() {
- var sum = 0, i = 0, args = arguments, l = args.length;
- while (i < l) {
- sum += args[i++];
- }
- return sum;
-};
+ exports.add = function() {
+ var sum = 0, i = 0, args = arguments, l = args.length;
+ while (i < l) {
+ sum += args[i++];
+ }
+ return sum;
+ };
/***/ }
})
@@ -128,10 +128,10 @@ exports.add = function() {
```
Hash: b3372208595e483f54eaa29577bc99f8
-Version: webpack 0.10.0-beta3
-Time: 35ms
+Version: webpack 0.10.0-beta4
+Time: 36ms
Asset Size Chunks Chunk Names
-output.js 1925 0 main
+output.js 2283 0 main
chunk {0} output.js (main) 329
[0] ./example.js 69 [built] {0}
[1] ./increment.js 98 [built] {0}
@@ -144,8 +144,8 @@ chunk {0} output.js (main) 329
```
Hash: b3372208595e483f54eaa29577bc99f8
-Version: webpack 0.10.0-beta3
-Time: 95ms
+Version: webpack 0.10.0-beta4
+Time: 97ms
Asset Size Chunks Chunk Names
output.js 460 0 main
chunk {0} output.js (main) 329
154 examples/component/README.md
View
@@ -72,64 +72,64 @@ module.exports = {
# js/output.js
``` javascript
-(function(modules) { // webpackBootstrap
- // The module cache
- var installedModules = {};
-
- // The require function
- function require(moduleId) {
- // Check if module is in cache
- if(installedModules[moduleId])
- return installedModules[moduleId].exports;
-
- // Create a new module (and put it into the cache)
- var module = installedModules[moduleId] = {
- exports: {},
- id: moduleId,
- loaded: false
- };
-
- // Execute the module function
- modules[moduleId].call(null, module, module.exports, require);
-
- // Flag the module as loaded
- module.loaded = true;
-
- // Return the exports of the module
- return module.exports;
- }
-
- // This file contains only the entry chunk.
- // The chunk loading function for additional chunks
- require.e = function requireEnsure(_, callback) {
- callback.call(null, require);
- };
-
- // expose the modules object (__webpack_modules__)
- require.modules = modules;
-
- // expose the module cache
- require.cache = installedModules;
-
-
- // Load entry module and return exports
- return require(0);
-})
+/******/(function(modules) { // webpackBootstrap
+/******/ // The module cache
+/******/ var installedModules = {};
+/******/
+/******/ // The require function
+/******/ function require(moduleId) {
+/******/ // Check if module is in cache
+/******/ if(installedModules[moduleId])
+/******/ return installedModules[moduleId].exports;
+/******/
+/******/ // Create a new module (and put it into the cache)
+/******/ var module = installedModules[moduleId] = {
+/******/ exports: {},
+/******/ id: moduleId,
+/******/ loaded: false
+/******/ };
+/******/
+/******/ // Execute the module function
+/******/ modules[moduleId].call(null, module, module.exports, require);
+/******/
+/******/ // Flag the module as loaded
+/******/ module.loaded = true;
+/******/
+/******/ // Return the exports of the module
+/******/ return module.exports;
+/******/ }
+/******/
+/******/ // This file contains only the entry chunk.
+/******/ // The chunk loading function for additional chunks
+/******/ require.e = function requireEnsure(_, callback) {
+/******/ callback.call(null, require);
+/******/ };
+/******/
+/******/ // expose the modules object (__webpack_modules__)
+/******/ require.modules = modules;
+/******/
+/******/ // expose the module cache
+/******/ require.cache = installedModules;
+/******/
+/******/
+/******/ // Load entry module and return exports
+/******/ return require(0);
+/******/})
/************************************************************************/
({
// __webpack_public_path__
-
c: "",
+
/***/ 0:
/*!********************!*\
!*** ./example.js ***!
\********************/
/***/ function(module, exports, require) {
-console.log(require(/*! a-component */ 1));
-console.log(require(/*! b-component */ 9));
-console.log(require(/*! c-component */ 7));
-
+ console.log(require(/*! a-component */ 1));
+ console.log(require(/*! b-component */ 9));
+ console.log(require(/*! c-component */ 7));
+
/***/ },
@@ -139,8 +139,8 @@ console.log(require(/*! c-component */ 7));
\***************************************************/
/***/ function(module, exports, require) {
-require(/*! (webpack)/~/component-webpack-plugin/~/style-loader!(webpack)/~/component-webpack-plugin/~/css-loader!./style.css */ 4);
-module.exports = require(/*! ./index.js */ 6);
+ require(/*! (webpack)/~/component-webpack-plugin/~/style-loader!(webpack)/~/component-webpack-plugin/~/css-loader!./style.css */ 4);
+ module.exports = require(/*! ./index.js */ 6);
/***/ },
@@ -150,8 +150,8 @@ module.exports = require(/*! ./index.js */ 6);
\********************************************************************************************************************************************/
/***/ function(module, exports, require) {
-module.exports =
- ".a-component {\n\tdisplay: inline;\n\tbackground: url("+require(/*! ./image.png */ 5)+") repeat;\n}";
+ module.exports =
+ ".a-component {\n\tdisplay: inline;\n\tbackground: url("+require(/*! ./image.png */ 5)+") repeat;\n}";
/***/ },
@@ -161,20 +161,20 @@ module.exports =
\****************************************************************************************************************/
/***/ function(module, exports, require) {
-/*
- MIT License http://www.opensource.org/licenses/mit-license.php
- Author Tobias Koppers @sokra
-*/
-module.exports = function(cssCode) {
- var styleElement = document.createElement("style");
- styleElement.type = "text/css";
- if (styleElement.styleSheet) {
- styleElement.styleSheet.cssText = cssCode;
- } else {
- styleElement.appendChild(document.createTextNode(cssCode));
+ /*
+ MIT License http://www.opensource.org/licenses/mit-license.php
+ Author Tobias Koppers @sokra
+ */
+ module.exports = function(cssCode) {
+ var styleElement = document.createElement("style");
+ styleElement.type = "text/css";
+ if (styleElement.styleSheet) {
+ styleElement.styleSheet.cssText = cssCode;
+ } else {
+ styleElement.appendChild(document.createTextNode(cssCode));
+ }
+ document.getElementsByTagName("head")[0].appendChild(styleElement);
}
- document.getElementsByTagName("head")[0].appendChild(styleElement);
-}
/***/ },
@@ -184,7 +184,7 @@ module.exports = function(cssCode) {
\*****************************************************************************************************************************************************************************************************************************************/
/***/ function(module, exports, require) {
-require(/*! (webpack)/~/component-webpack-plugin/~/style-loader/addStyle.js */ 3)(require(/*! !(webpack)/~/component-webpack-plugin/~/css-loader!./component/webpack-a-component/style.css */ 2))
+ require(/*! (webpack)/~/component-webpack-plugin/~/style-loader/addStyle.js */ 3)(require(/*! !(webpack)/~/component-webpack-plugin/~/css-loader!./component/webpack-a-component/style.css */ 2))
/***/ },
@@ -194,7 +194,7 @@ require(/*! (webpack)/~/component-webpack-plugin/~/style-loader/addStyle.js */ 3
\*************************************************/
/***/ function(module, exports, require) {
-module.exports = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABEAAAAOCAIAAABGj2DjAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAACNSURBVChTlZC7FQAREEWFylCKEoS6EalBKNWZEoR2zrLrWbO/Gzjjc9/MIep/upNS8t63+pXukCAE33ON4/vgdo3j+6zvkNuLBybn409MDo4UY9Ra09q2CD9bCIFkQkpZSumnB8PBwZRSzbHWthNkODiYc45qY8zZBBP52Yicc692MPHqfPm6q4N5PLVunPxwQxP50QkAAAAASUVORK5CYII="
+ module.exports = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABEAAAAOCAIAAABGj2DjAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAACNSURBVChTlZC7FQAREEWFylCKEoS6EalBKNWZEoR2zrLrWbO/Gzjjc9/MIep/upNS8t63+pXukCAE33ON4/vgdo3j+6zvkNuLBybn409MDo4UY9Ra09q2CD9bCIFkQkpZSumnB8PBwZRSzbHWthNkODiYc45qY8zZBBP52Yicc692MPHqfPm6q4N5PLVunPxwQxP50QkAAAAASUVORK5CYII="
/***/ },
@@ -204,7 +204,7 @@ module.exports = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABEAAAAOCAIAAABG
\************************************************/
/***/ function(module, exports, require) {
-module.exports = "A";
+ module.exports = "A";
/***/ },
@@ -214,7 +214,7 @@ module.exports = "A";
\***************************************************/
/***/ function(module, exports, require) {
-module.exports = require(/*! ./main.js */ 8);
+ module.exports = require(/*! ./main.js */ 8);
/***/ },
@@ -224,7 +224,7 @@ module.exports = require(/*! ./main.js */ 8);
\***********************************************/
/***/ function(module, exports, require) {
-module.exports = "C" + require(/*! a-component */ 1);
+ module.exports = "C" + require(/*! a-component */ 1);
/***/ },
@@ -234,7 +234,7 @@ module.exports = "C" + require(/*! a-component */ 1);
\**********************************************/
/***/ function(module, exports, require) {
-module.exports = require(/*! ./main.js */ 10);
+ module.exports = require(/*! ./main.js */ 10);
/***/ },
@@ -244,7 +244,7 @@ module.exports = require(/*! ./main.js */ 10);
\******************************************/
/***/ function(module, exports, require) {
-module.exports = "B";
+ module.exports = "B";
/***/ }
})
@@ -256,10 +256,10 @@ module.exports = "B";
```
Hash: 90defdf491ebab80d48bd42ea1f7c17d
-Version: webpack 0.10.0-beta3
-Time: 124ms
+Version: webpack 0.10.0-beta4
+Time: 125ms
Asset Size Chunks Chunk Names
-output.js 6384 0 main
+output.js 6757 0 main
chunk {0} output.js (main) 1981
[0] ./example.js 111 [built] {0}
[1] ./component/webpack-a-component (component) 328 [built] {0}
@@ -289,8 +289,8 @@ chunk {0} output.js (main) 1981
```
Hash: 347d579347a144b45a78b34863b12b79
-Version: webpack 0.10.0-beta3
-Time: 238ms
+Version: webpack 0.10.0-beta4
+Time: 544ms
Asset Size Chunks Chunk Names
output.js 1243 0 main
chunk {0} output.js (main) 1960
102 examples/i18n/README.md
View
@@ -33,62 +33,62 @@ module.exports = {
# js/output.js
``` javascript
-(function(modules) { // webpackBootstrap
- // The module cache
- var installedModules = {};
-
- // The require function
- function require(moduleId) {
- // Check if module is in cache
- if(installedModules[moduleId])
- return installedModules[moduleId].exports;
-
- // Create a new module (and put it into the cache)
- var module = installedModules[moduleId] = {
- exports: {},
- id: moduleId,
- loaded: false
- };
-
- // Execute the module function
- modules[moduleId].call(null, module, module.exports, require);
-
- // Flag the module as loaded
- module.loaded = true;
-
- // Return the exports of the module
- return module.exports;
- }
-
- // This file contains only the entry chunk.
- // The chunk loading function for additional chunks
- require.e = function requireEnsure(_, callback) {
- callback.call(null, require);
- };
-
- // expose the modules object (__webpack_modules__)
- require.modules = modules;
-
- // expose the module cache
- require.cache = installedModules;
-
-
- // Load entry module and return exports
- return require(0);
-})
+/******/(function(modules) { // webpackBootstrap
+/******/ // The module cache
+/******/ var installedModules = {};
+/******/
+/******/ // The require function
+/******/ function require(moduleId) {
+/******/ // Check if module is in cache
+/******/ if(installedModules[moduleId])
+/******/ return installedModules[moduleId].exports;
+/******/
+/******/ // Create a new module (and put it into the cache)
+/******/ var module = installedModules[moduleId] = {
+/******/ exports: {},
+/******/ id: moduleId,
+/******/ loaded: false
+/******/ };
+/******/
+/******/ // Execute the module function
+/******/ modules[moduleId].call(null, module, module.exports, require);
+/******/
+/******/ // Flag the module as loaded
+/******/ module.loaded = true;
+/******/
+/******/ // Return the exports of the module
+/******/ return module.exports;
+/******/ }
+/******/
+/******/ // This file contains only the entry chunk.
+/******/ // The chunk loading function for additional chunks
+/******/ require.e = function requireEnsure(_, callback) {
+/******/ callback.call(null, require);
+/******/ };
+/******/
+/******/ // expose the modules object (__webpack_modules__)
+/******/ require.modules = modules;
+/******/
+/******/ // expose the module cache
+/******/ require.cache = installedModules;
+/******/
+/******/
+/******/ // Load entry module and return exports
+/******/ return require(0);
+/******/})
/************************************************************************/
({
// __webpack_public_path__
-
c: "",
+
/***/ 0:
/*!********************!*\
!*** ./example.js ***!
\********************/
/***/ function(module, exports, require) {
-console.log("Hallo Welt");
-console.log("Missing Text");
+ console.log("Hallo Welt");
+ console.log("Missing Text");
/***/ }
})
@@ -100,10 +100,10 @@ console.log("Missing Text");
```
Hash: a738ac89a403e736beace631044222a3
-Version: webpack 0.10.0-beta3
-Time: 22ms
+Version: webpack 0.10.0-beta4
+Time: 23ms
Asset Size Chunks Chunk Names
-output.js 1356 0 main
+output.js 1702 0 main
chunk {0} output.js (main) 64
[0] ./example.js 64 [built] {0}
@@ -115,8 +115,8 @@ Missing localization: Missing Text
```
Hash: a738ac89a403e736beace631044222a3
-Version: webpack 0.10.0-beta3
-Time: 66ms
+Version: webpack 0.10.0-beta4
+Time: 63ms
Asset Size Chunks Chunk Names
output.js 308 0 main
chunk {0} output.js (main) 64
126 examples/labeled-modules/README.md
View
@@ -30,63 +30,63 @@ exports: function add() {
# js/output.js
``` javascript
-(function(modules) { // webpackBootstrap
- // The module cache
- var installedModules = {};
-
- // The require function
- function require(moduleId) {
- // Check if module is in cache
- if(installedModules[moduleId])
- return installedModules[moduleId].exports;
-
- // Create a new module (and put it into the cache)
- var module = installedModules[moduleId] = {
- exports: {},
- id: moduleId,
- loaded: false
- };
-
- // Execute the module function
- modules[moduleId].call(null, module, module.exports, require);
-
- // Flag the module as loaded
- module.loaded = true;
-
- // Return the exports of the module
- return module.exports;
- }
-
- // This file contains only the entry chunk.
- // The chunk loading function for additional chunks
- require.e = function requireEnsure(_, callback) {
- callback.call(null, require);
- };
-
- // expose the modules object (__webpack_modules__)
- require.modules = modules;
-
- // expose the module cache
- require.cache = installedModules;
-
-
- // Load entry module and return exports
- return require(0);
-})
+/******/(function(modules) { // webpackBootstrap
+/******/ // The module cache
+/******/ var installedModules = {};
+/******/
+/******/ // The require function
+/******/ function require(moduleId) {
+/******/ // Check if module is in cache
+/******/ if(installedModules[moduleId])
+/******/ return installedModules[moduleId].exports;
+/******/
+/******/ // Create a new module (and put it into the cache)
+/******/ var module = installedModules[moduleId] = {
+/******/ exports: {},
+/******/ id: moduleId,
+/******/ loaded: false
+/******/ };
+/******/
+/******/ // Execute the module function
+/******/ modules[moduleId].call(null, module, module.exports, require);
+/******/
+/******/ // Flag the module as loaded
+/******/ module.loaded = true;
+/******/
+/******/ // Return the exports of the module
+/******/ return module.exports;
+/******/ }
+/******/
+/******/ // This file contains only the entry chunk.
+/******/ // The chunk loading function for additional chunks
+/******/ require.e = function requireEnsure(_, callback) {
+/******/ callback.call(null, require);
+/******/ };
+/******/
+/******/ // expose the modules object (__webpack_modules__)
+/******/ require.modules = modules;
+/******/
+/******/ // expose the module cache
+/******/ require.cache = installedModules;
+/******/
+/******/
+/******/ // Load entry module and return exports
+/******/ return require(0);
+/******/})
/************************************************************************/
({
// __webpack_public_path__
-
c: "",
+
/***/ 0:
/*!********************!*\
!*** ./example.js ***!
\********************/
/***/ function(module, exports, require) {
-var __WEBPACK_LABELED_MODULE__1 = require(/*! ./increment */ 1), increment = __WEBPACK_LABELED_MODULE__1.increment;
-var a = 1;
-increment(a); // 2
+ var __WEBPACK_LABELED_MODULE__1 = require(/*! ./increment */ 1), increment = __WEBPACK_LABELED_MODULE__1.increment;
+ var a = 1;
+ increment(a); // 2
/***/ },
@@ -96,10 +96,10 @@ increment(a); // 2
\**********************/
/***/ function(module, exports, require) {
-var __WEBPACK_LABELED_MODULE__2 = require(/*! ./math */ 2), add = __WEBPACK_LABELED_MODULE__2.add;
-exports: exports["increment"] = function increment(val) {
- return add(val, 1);
-};
+ var __WEBPACK_LABELED_MODULE__2 = require(/*! ./math */ 2), add = __WEBPACK_LABELED_MODULE__2.add;
+ exports: exports["increment"] = function increment(val) {
+ return add(val, 1);
+ };
/***/ },
@@ -109,13 +109,13 @@ exports: exports["increment"] = function increment(val) {
\*****************/
/***/ function(module, exports, require) {
-exports: exports["add"] = function add() {
- var sum = 0, i = 0, args = arguments, l = args.length;
- while (i < l) {
- sum += args[i++];
- }
- return sum;
-};
+ exports: exports["add"] = function add() {
+ var sum = 0, i = 0, args = arguments, l = args.length;
+ while (i < l) {
+ sum += args[i++];
+ }
+ return sum;
+ };
/***/ }
})
@@ -129,10 +129,10 @@ The remaining labels are removed while minimizing.
```
Hash: 7167162ed42199dd8fc82db2097674eb
-Version: webpack 0.10.0-beta3
-Time: 36ms
+Version: webpack 0.10.0-beta4
+Time: 37ms
Asset Size Chunks Chunk Names
-output.js 2093 0 main
+output.js 2451 0 main
chunk {0} output.js (main) 299
[0] ./example.js 55 [built] {0}
[1] ./increment.js 83 [built] {0}
@@ -145,8 +145,8 @@ chunk {0} output.js (main) 299
```
Hash: 7167162ed42199dd8fc82db2097674eb
-Version: webpack 0.10.0-beta3
-Time: 95ms
+Version: webpack 0.10.0-beta4
+Time: 106ms
Asset Size Chunks Chunk Names
output.js 468 0 main
chunk {0} output.js (main) 299
116 examples/loader/README.md
View
@@ -34,66 +34,66 @@ module.exports = function(content) {
# js/output.js
``` javascript
-(function(modules) { // webpackBootstrap
- // The module cache
- var installedModules = {};
-
- // The require function
- function require(moduleId) {
- // Check if module is in cache
- if(installedModules[moduleId])
- return installedModules[moduleId].exports;
-
- // Create a new module (and put it into the cache)
- var module = installedModules[moduleId] = {
- exports: {},
- id: moduleId,
- loaded: false
- };
-
- // Execute the module function
- modules[moduleId].call(null, module, module.exports, require);
-
- // Flag the module as loaded
- module.loaded = true;
-
- // Return the exports of the module
- return module.exports;
- }
-
- // This file contains only the entry chunk.
- // The chunk loading function for additional chunks
- require.e = function requireEnsure(_, callback) {
- callback.call(null, require);
- };
-
- // expose the modules object (__webpack_modules__)
- require.modules = modules;
-
- // expose the module cache
- require.cache = installedModules;
-
-
- // Load entry module and return exports
- return require(0);
-})
+/******/(function(modules) { // webpackBootstrap
+/******/ // The module cache
+/******/ var installedModules = {};
+/******/
+/******/ // The require function
+/******/ function require(moduleId) {
+/******/ // Check if module is in cache
+/******/ if(installedModules[moduleId])
+/******/ return installedModules[moduleId].exports;
+/******/
+/******/ // Create a new module (and put it into the cache)
+/******/ var module = installedModules[moduleId] = {
+/******/ exports: {},
+/******/ id: moduleId,
+/******/ loaded: false
+/******/ };
+/******/
+/******/ // Execute the module function
+/******/ modules[moduleId].call(null, module, module.exports, require);
+/******/
+/******/ // Flag the module as loaded
+/******/ module.loaded = true;
+/******/
+/******/ // Return the exports of the module
+/******/ return module.exports;
+/******/ }
+/******/
+/******/ // This file contains only the entry chunk.
+/******/ // The chunk loading function for additional chunks
+/******/ require.e = function requireEnsure(_, callback) {
+/******/ callback.call(null, require);
+/******/ };
+/******/
+/******/ // expose the modules object (__webpack_modules__)
+/******/ require.modules = modules;
+/******/
+/******/ // expose the module cache
+/******/ require.cache = installedModules;
+/******/
+/******/
+/******/ // Load entry module and return exports
+/******/ return require(0);
+/******/})
/************************************************************************/
({
// __webpack_public_path__
-
c: "",
+
/***/ 0:
/*!********************!*\
!*** ./example.js ***!
\********************/
/***/ function(module, exports, require) {
-// use our loader
-console.dir(require(/*! ./loader!./file */ 2));
-
-// use buildin json loader
-console.dir(require(/*! ./test.json */ 1)); // default by extension
-console.dir(require(/*! json!./test.json */ 1)); // manual
+ // use our loader
+ console.dir(require(/*! ./loader!./file */ 2));
+
+ // use buildin json loader
+ console.dir(require(/*! ./test.json */ 1)); // default by extension
+ console.dir(require(/*! json!./test.json */ 1)); // manual
/***/ },
@@ -103,9 +103,9 @@ console.dir(require(/*! json!./test.json */ 1)); // manual
\************************************************************************************/
/***/ function(module, exports, require) {
-module.exports = {
- "foobar": 1234
-}
+ module.exports = {
+ "foobar": 1234
+ }
/***/ },
@@ -115,8 +115,8 @@ module.exports = {
\*****************************/
/***/ function(module, exports, require) {
-exports.answer = 42;
-exports.foo = "bar";
+ exports.answer = 42;
+ exports.foo = "bar";
/***/ }
})
@@ -138,10 +138,10 @@ Prints in node.js (`enhanced-require example.js`) and in browser:
```
Hash: 5caaa03683d41f386ba25cd5e2812588
-Version: webpack 0.10.0-beta3
-Time: 62ms
+Version: webpack 0.10.0-beta4
+Time: 56ms
Asset Size Chunks Chunk Names
-output.js 2106 0 main
+output.js 2461 0 main
chunk {0} output.js (main) 282
[0] ./example.js 205 [built] {0}
[1] (webpack)/~/json-loader!./test.json 36 [built] {0}
324 examples/mixed/README.md
View
@@ -75,113 +75,113 @@ require(
# js/output.js
``` javascript
-(function(modules) { // webpackBootstrap
- // The module cache
- var installedModules = {};
-
- // object to store loaded and loading chunks
- // "0" means "already loaded"
- // Array means "loading", array contains callbacks
- var installedChunks = {0:0};
-
- // The require function
- function require(moduleId) {
- // Check if module is in cache
- if(installedModules[moduleId])
- return installedModules[moduleId].exports;
-
- // Create a new module (and put it into the cache)
- var module = installedModules[moduleId] = {
- exports: {},
- id: moduleId,
- loaded: false
- };
-
- // Execute the module function
- modules[moduleId].call(null, module, module.exports, require);
-
- // Flag the module as loaded
- module.loaded = true;
-
- // Return the exports of the module
- return module.exports;
- }
-
- // The bundle contains no chunks. A empty chunk loading function.
- require.e = function requireEnsure(chunkId, callback) {
- // "0" is the signal for "already loaded"
- if(installedChunks[chunkId] === 0)
- return callback.call(null, require);
-
- // an array means "currently loading".
- if(installedChunks[chunkId] !== undefined