diff --git a/.gitignore b/.gitignore index 39aa297..260d8b5 100644 --- a/.gitignore +++ b/.gitignore @@ -1,4 +1,3 @@ /node_modules/ /dist/ -examples/*/dist npm-debug.log diff --git a/examples/appcache/dist/0714810ae3fb211173e2964249507195.png b/examples/appcache/dist/0714810ae3fb211173e2964249507195.png new file mode 100644 index 0000000..d71b3d7 Binary files /dev/null and b/examples/appcache/dist/0714810ae3fb211173e2964249507195.png differ diff --git a/examples/appcache/dist/bundle.js b/examples/appcache/dist/bundle.js new file mode 100644 index 0000000..894c0ac --- /dev/null +++ b/examples/appcache/dist/bundle.js @@ -0,0 +1,59 @@ +/******/ (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].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(module.exports, module, module.exports, __webpack_require__); + +/******/ // Flag the module as loaded +/******/ module.loaded = true; + +/******/ // Return the exports of the module +/******/ return module.exports; +/******/ } + + +/******/ // 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__(0); +/******/ }) +/************************************************************************/ +/******/ ([ +/* 0 */ +/***/ function(module, exports, __webpack_require__) { + + __webpack_require__(1); + var h1 = document.createElement('h1'); + h1.innerHTML = 'Hello world!'; + document.body.appendChild(h1); + +/***/ }, +/* 1 */ +/***/ function(module, exports) { + + // removed by extract-text-webpack-plugin + +/***/ } +/******/ ]); \ No newline at end of file diff --git a/examples/appcache/dist/index.html b/examples/appcache/dist/index.html new file mode 100644 index 0000000..3a2aa9e --- /dev/null +++ b/examples/appcache/dist/index.html @@ -0,0 +1 @@ +Example template \ No newline at end of file diff --git a/examples/appcache/dist/manifest.appcache b/examples/appcache/dist/manifest.appcache new file mode 100644 index 0000000..9c520eb --- /dev/null +++ b/examples/appcache/dist/manifest.appcache @@ -0,0 +1,9 @@ +CACHE MANIFEST +# 298aee4322ebd7ef62f9 + +0714810ae3fb211173e2964249507195.png +bundle.js +styles.css + +NETWORK: +* diff --git a/examples/appcache/dist/styles.css b/examples/appcache/dist/styles.css new file mode 100644 index 0000000..232a2cd --- /dev/null +++ b/examples/appcache/dist/styles.css @@ -0,0 +1,3 @@ +body { + background: snow; +} \ No newline at end of file diff --git a/examples/appcache/webpack.config.js b/examples/appcache/webpack.config.js index 61163dc..3824f14 100755 --- a/examples/appcache/webpack.config.js +++ b/examples/appcache/webpack.config.js @@ -20,9 +20,9 @@ module.exports = { new HtmlWebpackPlugin({ filename: 'index.html', template: 'template.html', - minify:{ - removeComments:true, - collapseWhitespace:true + minify:{ + removeComments:true, + collapseWhitespace:true } }), new ExtractTextPlugin('styles.css') diff --git a/examples/custom-template/dist/0714810ae3fb211173e2964249507195.png b/examples/custom-template/dist/0714810ae3fb211173e2964249507195.png new file mode 100644 index 0000000..d71b3d7 Binary files /dev/null and b/examples/custom-template/dist/0714810ae3fb211173e2964249507195.png differ diff --git a/examples/custom-template/dist/bundle.js b/examples/custom-template/dist/bundle.js new file mode 100644 index 0000000..894c0ac --- /dev/null +++ b/examples/custom-template/dist/bundle.js @@ -0,0 +1,59 @@ +/******/ (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].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(module.exports, module, module.exports, __webpack_require__); + +/******/ // Flag the module as loaded +/******/ module.loaded = true; + +/******/ // Return the exports of the module +/******/ return module.exports; +/******/ } + + +/******/ // 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__(0); +/******/ }) +/************************************************************************/ +/******/ ([ +/* 0 */ +/***/ function(module, exports, __webpack_require__) { + + __webpack_require__(1); + var h1 = document.createElement('h1'); + h1.innerHTML = 'Hello world!'; + document.body.appendChild(h1); + +/***/ }, +/* 1 */ +/***/ function(module, exports) { + + // removed by extract-text-webpack-plugin + +/***/ } +/******/ ]); \ No newline at end of file diff --git a/examples/custom-template/dist/index.html b/examples/custom-template/dist/index.html new file mode 100644 index 0000000..a9d8bf4 --- /dev/null +++ b/examples/custom-template/dist/index.html @@ -0,0 +1,12 @@ + + + + + Webpack App + + + +

Partial

+ + + \ No newline at end of file diff --git a/examples/custom-template/dist/styles.css b/examples/custom-template/dist/styles.css new file mode 100644 index 0000000..232a2cd --- /dev/null +++ b/examples/custom-template/dist/styles.css @@ -0,0 +1,3 @@ +body { + background: snow; +} \ No newline at end of file diff --git a/examples/default/dist/bundle.js b/examples/default/dist/bundle.js new file mode 100644 index 0000000..3d11d80 --- /dev/null +++ b/examples/default/dist/bundle.js @@ -0,0 +1,403 @@ +/******/ (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].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(module.exports, module, module.exports, __webpack_require__); + +/******/ // Flag the module as loaded +/******/ module.loaded = true; + +/******/ // Return the exports of the module +/******/ return module.exports; +/******/ } + + +/******/ // 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__(0); +/******/ }) +/************************************************************************/ +/******/ ([ +/* 0 */ +/***/ function(module, exports, __webpack_require__) { + + __webpack_require__(1); + var h1 = document.createElement('h1'); + h1.innerHTML = 'Hello world!'; + document.body.appendChild(h1); + +/***/ }, +/* 1 */ +/***/ function(module, exports, __webpack_require__) { + + // style-loader: Adds some css to the DOM by adding a