diff --git a/examples/rebuild.js b/examples/build-examples.js similarity index 99% rename from examples/rebuild.js rename to examples/build-examples.js index 2d98200..563224c 100644 --- a/examples/rebuild.js +++ b/examples/build-examples.js @@ -4,7 +4,6 @@ * 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'); diff --git a/examples/inline/dist/bundle.js b/examples/inline/dist/webpack-1/bundle.js similarity index 100% rename from examples/inline/dist/bundle.js rename to examples/inline/dist/webpack-1/bundle.js diff --git a/examples/inline/dist/favicon.ico b/examples/inline/dist/webpack-1/favicon.ico similarity index 100% rename from examples/inline/dist/favicon.ico rename to examples/inline/dist/webpack-1/favicon.ico diff --git a/examples/inline/dist/index.html b/examples/inline/dist/webpack-1/index.html similarity index 100% rename from examples/inline/dist/index.html rename to examples/inline/dist/webpack-1/index.html diff --git a/examples/inline/dist/styles.css b/examples/inline/dist/webpack-1/styles.css similarity index 100% rename from examples/inline/dist/styles.css rename to examples/inline/dist/webpack-1/styles.css diff --git a/examples/inline/dist/webpack-2/bundle.js b/examples/inline/dist/webpack-2/bundle.js new file mode 100644 index 0000000..f5d58df --- /dev/null +++ b/examples/inline/dist/webpack-2/bundle.js @@ -0,0 +1,60 @@ +/******/ (function(modules) { // webpackBootstrap +/******/ // The module cache +/******/ var installedModules = {}; + +/******/ // The require function +/******/ function __webpack_require__(moduleId) { + +/******/ // Check if module is in cache +/******/ if(installedModules[moduleId]) +/******/ return installedModules[moduleId].e; + +/******/ // Create a new module (and put it into the cache) +/******/ var module = installedModules[moduleId] = { +/******/ e: {}, +/******/ i: moduleId, +/******/ l: false +/******/ }; + +/******/ // Execute the module function +/******/ modules[moduleId].call(module.e, module, module.e, __webpack_require__); + +/******/ // Flag the module as loaded +/******/ module.l = true; + +/******/ // Return the exports of the module +/******/ return module.e; +/******/ } + + +/******/ // expose the modules object (__webpack_modules__) +/******/ __webpack_require__.m = modules; + +/******/ // expose the module cache +/******/ __webpack_require__.c = installedModules; + +/******/ // __webpack_public_path__ +/******/ __webpack_require__.p = ""; + +/******/ // Load entry module and return exports +/******/ return __webpack_require__(__webpack_require__.s = 1); +/******/ }) +/************************************************************************/ +/******/ ([ +/* 0 */ +/***/ function(module, exports) { + + // removed by extract-text-webpack-plugin + +/***/ }, +/* 1 */ +/***/ function(module, exports, __webpack_require__) { + + 'use strict'; + __webpack_require__(0); + + console.log('Hello World'); + + +/***/ } +/******/ ]); \ No newline at end of file diff --git a/examples/inline/dist/webpack-2/favicon.ico b/examples/inline/dist/webpack-2/favicon.ico new file mode 100644 index 0000000..be74abd Binary files /dev/null and b/examples/inline/dist/webpack-2/favicon.ico differ diff --git a/examples/inline/dist/webpack-2/index.html b/examples/inline/dist/webpack-2/index.html new file mode 100644 index 0000000..bd971c9 --- /dev/null +++ b/examples/inline/dist/webpack-2/index.html @@ -0,0 +1,62 @@ +