Fix dist files

This commit is contained in:
Jan Nicklas 2016-03-22 19:36:32 +01:00
parent fab60bed44
commit 29871bd0f5
10 changed files with 96 additions and 71 deletions

View File

@ -7,23 +7,23 @@
/******/ // Check if module is in cache
/******/ if(installedModules[moduleId])
/******/ return installedModules[moduleId].exports;
/******/ return installedModules[moduleId].e;
/******/ // Create a new module (and put it into the cache)
/******/ var module = installedModules[moduleId] = {
/******/ exports: {},
/******/ id: moduleId,
/******/ loaded: false
/******/ e: {},
/******/ i: moduleId,
/******/ l: false
/******/ };
/******/ // Execute the module function
/******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__);
/******/ modules[moduleId].call(module.e, module, module.e, __webpack_require__);
/******/ // Flag the module as loaded
/******/ module.loaded = true;
/******/ module.l = true;
/******/ // Return the exports of the module
/******/ return module.exports;
/******/ return module.e;
/******/ }

View File

@ -7,23 +7,23 @@
/******/ // Check if module is in cache
/******/ if(installedModules[moduleId])
/******/ return installedModules[moduleId].exports;
/******/ return installedModules[moduleId].e;
/******/ // Create a new module (and put it into the cache)
/******/ var module = installedModules[moduleId] = {
/******/ exports: {},
/******/ id: moduleId,
/******/ loaded: false
/******/ e: {},
/******/ i: moduleId,
/******/ l: false
/******/ };
/******/ // Execute the module function
/******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__);
/******/ modules[moduleId].call(module.e, module, module.e, __webpack_require__);
/******/ // Flag the module as loaded
/******/ module.loaded = true;
/******/ module.l = true;
/******/ // Return the exports of the module
/******/ return module.exports;
/******/ return module.e;
/******/ }

View File

@ -7,23 +7,23 @@
/******/ // Check if module is in cache
/******/ if(installedModules[moduleId])
/******/ return installedModules[moduleId].exports;
/******/ return installedModules[moduleId].e;
/******/ // Create a new module (and put it into the cache)
/******/ var module = installedModules[moduleId] = {
/******/ exports: {},
/******/ id: moduleId,
/******/ loaded: false
/******/ e: {},
/******/ i: moduleId,
/******/ l: false
/******/ };
/******/ // Execute the module function
/******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__);
/******/ modules[moduleId].call(module.e, module, module.e, __webpack_require__);
/******/ // Flag the module as loaded
/******/ module.loaded = true;
/******/ module.l = true;
/******/ // Return the exports of the module
/******/ return module.exports;
/******/ return module.e;
/******/ }
@ -48,10 +48,10 @@
// load the styles
var content = __webpack_require__(2);
if(typeof content === 'string') content = [[module.id, content, '']];
if(typeof content === 'string') content = [[module.i, content, '']];
// add the styles to the DOM
var update = __webpack_require__(4)(content, {});
if(content.locals) module.exports = content.locals;
if(content.locals) module.e = content.locals;
// Hot Module Replacement
if(false) {
// When the styles change, update the <style> tags
@ -80,26 +80,26 @@
/* 2 */
/***/ function(module, exports, __webpack_require__) {
exports = module.exports = __webpack_require__(3)();
exports = module.e = __webpack_require__(3)();
// imports
// module
exports.push([module.id, "body {\n background: snow;\n}", ""]);
exports.push([module.i, "body {\n background: snow;\n}", ""]);
// exports
/***/ },
/* 3 */
/***/ function(module, exports) {
/***/ function(module, exports, __webpack_require__) {
/*
MIT License http://www.opensource.org/licenses/mit-license.php
Author Tobias Koppers @sokra
*/
// css base code, injected by the css-loader
module.exports = function() {
module.e = function() {
var list = [];
// return the list of modules as css string
@ -148,7 +148,7 @@
/***/ },
/* 4 */
/***/ function(module, exports) {
/***/ function(module, exports, __webpack_require__) {
/*
MIT License http://www.opensource.org/licenses/mit-license.php
@ -172,7 +172,7 @@
singletonCounter = 0,
styleElementsInsertedAtTop = [];
module.exports = function(list, options) {
module.e = function(list, options) {
if(typeof DEBUG !== "undefined" && DEBUG) {
if(typeof document !== "object") throw new Error("The style-loader cannot be used in a non-browser environment");
}

View File

@ -7,23 +7,23 @@
/******/ // Check if module is in cache
/******/ if(installedModules[moduleId])
/******/ return installedModules[moduleId].exports;
/******/ return installedModules[moduleId].e;
/******/ // Create a new module (and put it into the cache)
/******/ var module = installedModules[moduleId] = {
/******/ exports: {},
/******/ id: moduleId,
/******/ loaded: false
/******/ e: {},
/******/ i: moduleId,
/******/ l: false
/******/ };
/******/ // Execute the module function
/******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__);
/******/ modules[moduleId].call(module.e, module, module.e, __webpack_require__);
/******/ // Flag the module as loaded
/******/ module.loaded = true;
/******/ module.l = true;
/******/ // Return the exports of the module
/******/ return module.exports;
/******/ return module.e;
/******/ }

View File

@ -7,23 +7,23 @@
/******/ // Check if module is in cache
/******/ if(installedModules[moduleId])
/******/ return installedModules[moduleId].exports;
/******/ return installedModules[moduleId].e;
/******/ // Create a new module (and put it into the cache)
/******/ var module = installedModules[moduleId] = {
/******/ exports: {},
/******/ id: moduleId,
/******/ loaded: false
/******/ e: {},
/******/ i: moduleId,
/******/ l: false
/******/ };
/******/ // Execute the module function
/******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__);
/******/ modules[moduleId].call(module.e, module, module.e, __webpack_require__);
/******/ // Flag the module as loaded
/******/ module.loaded = true;
/******/ module.l = true;
/******/ // Return the exports of the module
/******/ return module.exports;
/******/ return module.e;
/******/ }

View File

@ -7,23 +7,23 @@
/******/ // Check if module is in cache
/******/ if(installedModules[moduleId])
/******/ return installedModules[moduleId].exports;
/******/ return installedModules[moduleId].e;
/******/ // Create a new module (and put it into the cache)
/******/ var module = installedModules[moduleId] = {
/******/ exports: {},
/******/ id: moduleId,
/******/ loaded: false
/******/ e: {},
/******/ i: moduleId,
/******/ l: false
/******/ };
/******/ // Execute the module function
/******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__);
/******/ modules[moduleId].call(module.e, module, module.e, __webpack_require__);
/******/ // Flag the module as loaded
/******/ module.loaded = true;
/******/ module.l = true;
/******/ // Return the exports of the module
/******/ return module.exports;
/******/ return module.e;
/******/ }
@ -52,7 +52,7 @@
var jade = __webpack_require__(4);
module.exports = function template(locals) {
module.e = function template(locals) {
var buf = [];
var jade_mixins = {};
var jade_interp;
@ -80,7 +80,7 @@
/* 3 */
/***/ function(module, exports, __webpack_require__) {
module.exports = __webpack_require__.p + "0714810ae3fb211173e2964249507195.png";
module.e = __webpack_require__.p + "0714810ae3fb211173e2964249507195.png";
/***/ },
/* 4 */

View File

@ -7,23 +7,23 @@
/******/ // Check if module is in cache
/******/ if(installedModules[moduleId])
/******/ return installedModules[moduleId].exports;
/******/ return installedModules[moduleId].e;
/******/ // Create a new module (and put it into the cache)
/******/ var module = installedModules[moduleId] = {
/******/ exports: {},
/******/ id: moduleId,
/******/ loaded: false
/******/ e: {},
/******/ i: moduleId,
/******/ l: false
/******/ };
/******/ // Execute the module function
/******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__);
/******/ modules[moduleId].call(module.e, module, module.e, __webpack_require__);
/******/ // Flag the module as loaded
/******/ module.loaded = true;
/******/ module.l = true;
/******/ // Return the exports of the module
/******/ return module.exports;
/******/ return module.e;
/******/ }
@ -42,9 +42,9 @@
/************************************************************************/
/******/ ([
/* 0 */
/***/ function(module, exports) {
/***/ function(module, exports, __webpack_require__) {
eval("// This file is used for frontend and backend\n'use strict';\n\n// If compiled by the html-webpack-plugin\n// HTML_WEBPACK_PLUGIN is set to true:\nvar backend = typeof HTML_WEBPACK_PLUGIN !== 'undefined';\n\nmodule.exports = function () {\n return 'Hello World from ' + (backend ? 'backend' : 'frontend');\n};\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./universial.js\n ** module id = 0\n ** module chunks = 0\n **/\n\n//# sourceURL=webpack:///./universial.js?");
eval("// This file is used for frontend and backend\n'use strict';\n\n// If compiled by the html-webpack-plugin\n// HTML_WEBPACK_PLUGIN is set to true:\nvar backend = typeof HTML_WEBPACK_PLUGIN !== 'undefined';\n\nmodule.e = function () {\n return 'Hello World from ' + (backend ? 'backend' : 'frontend');\n};\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./universial.js\n ** module id = 0\n ** module chunks = 0\n **/\n\n//# sourceURL=webpack:///./universial.js?");
/***/ },
/* 1 */

View File

@ -7,23 +7,23 @@
/******/ // Check if module is in cache
/******/ if(installedModules[moduleId])
/******/ return installedModules[moduleId].exports;
/******/ return installedModules[moduleId].e;
/******/ // Create a new module (and put it into the cache)
/******/ var module = installedModules[moduleId] = {
/******/ exports: {},
/******/ id: moduleId,
/******/ loaded: false
/******/ e: {},
/******/ i: moduleId,
/******/ l: false
/******/ };
/******/ // Execute the module function
/******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__);
/******/ modules[moduleId].call(module.e, module, module.e, __webpack_require__);
/******/ // Flag the module as loaded
/******/ module.loaded = true;
/******/ module.l = true;
/******/ // Return the exports of the module
/******/ return module.exports;
/******/ return module.e;
/******/ }
@ -42,9 +42,9 @@
/************************************************************************/
/******/ ([
/* 0 */
/***/ function(module, exports) {
/***/ function(module, exports, __webpack_require__) {
eval("// This file is used for frontend and backend\n'use strict';\n\n// If compiled by the html-webpack-plugin\n// HTML_WEBPACK_PLUGIN is set to true:\nvar backend = typeof HTML_WEBPACK_PLUGIN !== 'undefined';\n\nmodule.exports = function () {\n return 'Hello World from ' + (backend ? 'backend' : 'frontend');\n};\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./universial.js\n ** module id = 0\n ** module chunks = 0\n **/\n\n//# sourceURL=webpack:///./universial.js?");
eval("// This file is used for frontend and backend\n'use strict';\n\n// If compiled by the html-webpack-plugin\n// HTML_WEBPACK_PLUGIN is set to true:\nvar backend = typeof HTML_WEBPACK_PLUGIN !== 'undefined';\n\nmodule.e = function () {\n return 'Hello World from ' + (backend ? 'backend' : 'frontend');\n};\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./universial.js\n ** module id = 0\n ** module chunks = 0\n **/\n\n//# sourceURL=webpack:///./universial.js?");
/***/ },
/* 1 */

View File

@ -1,2 +1,2 @@
<head><link href="styles.css" rel="stylesheet"></head>Hello World from backend2016-03-21T09:28:37.011Z<h2>Partial</h2>
<head><link href="styles.css" rel="stylesheet"></head>Hello World from backend2016-03-22T18:35:15.191Z<h2>Partial</h2>
<img src="0714810ae3fb211173e2964249507195.png"><script src="bundle.js"></script>

25
examples/rebuild.js Normal file
View File

@ -0,0 +1,25 @@
/**
* This file is just a helper to compile all examples.
*
* You could do the same by going into each example and execute
* `webpack`
*/
var webpackMajorVersion = require('webpack/package.json').version.split('.')[0];
var fs = require('fs');
var path = require('path');
var execSync = require('child_process').execSync;
var rm_rf = require('rimraf');
var webpackBin = path.resolve(__dirname, '..', 'node_modules', '.bin', 'webpack');
var examples = fs.readdirSync(__dirname).filter(function (file) {
return fs.statSync(path.join(__dirname, file)).isDirectory();
});
examples.forEach(function (exampleName) {
var examplePath = path.join(__dirname, exampleName);
var configFile = path.join(examplePath, 'webpack.config.js');
rm_rf.sync(path.join(examplePath, 'dist', 'webpack-' + webpackMajorVersion));
execSync(webpackBin + ' --context "' + examplePath + '" --config "' + configFile + '"');
});