diff --git a/.gitignore b/.gitignore index e405d9241..1142de1e6 100644 --- a/.gitignore +++ b/.gitignore @@ -4,7 +4,7 @@ /test/fixtures/temp-cache-fixture /benchmark/js /benchmark/fixtures -/examples/**/js +/examples/**/dist /coverage .DS_Store *.log diff --git a/examples/aggressive-merging/README.md b/examples/aggressive-merging/README.md index 8f5c1f7ba..d15156051 100644 --- a/examples/aggressive-merging/README.md +++ b/examples/aggressive-merging/README.md @@ -39,7 +39,7 @@ module.exports = { pageC: "./pageC" }, output: { - path: path.join(__dirname, "js"), + path: path.join(__dirname, "dist"), filename: "[name].bundle.js", chunkFilename: "[id].chunk.js" }, diff --git a/examples/aggressive-merging/webpack.config.js b/examples/aggressive-merging/webpack.config.js index eb8afedba..77e57e8c5 100644 --- a/examples/aggressive-merging/webpack.config.js +++ b/examples/aggressive-merging/webpack.config.js @@ -8,7 +8,7 @@ module.exports = { pageC: "./pageC" }, output: { - path: path.join(__dirname, "js"), + path: path.join(__dirname, "dist"), filename: "[name].bundle.js", chunkFilename: "[id].chunk.js" }, diff --git a/examples/build-common.js b/examples/build-common.js index bd3fc07ea..19de54f54 100644 --- a/examples/build-common.js +++ b/examples/build-common.js @@ -12,9 +12,9 @@ const async = require("async"); const extraArgs = ""; -const targetArgs = global.NO_TARGET_ARGS ? "" : " ./example.js -o js/output.js "; +const targetArgs = global.NO_TARGET_ARGS ? "" : " ./example.js -o dist/output.js "; const displayReasons = global.NO_REASONS ? "" : " --display-reasons --display-used-exports --display-provided-exports"; -const commonArgs = `--display-chunks --display-max-modules 99999 --display-origins --display-entrypoints --output-public-path "js/" ${extraArgs} ${targetArgs}`; +const commonArgs = `--display-chunks --display-max-modules 99999 --display-origins --display-entrypoints --output-public-path "dist/" ${extraArgs} ${targetArgs}`; let readme = fs.readFileSync(require("path").join(process.cwd(), "template.md"), "utf-8"); @@ -23,9 +23,9 @@ const doCompileAndReplace = (args, prefix, callback) => { callback(); return; } - if(fs.existsSync("js")) - for(const file of fs.readdirSync("js")) - fs.unlinkSync(`js/${file}`); + if(fs.existsSync("dist")) + for(const file of fs.readdirSync("dist")) + fs.unlinkSync(`dist/${file}`); cp.exec(`node ${path.resolve(__dirname, "../bin/webpack.js")} ${args} ${displayReasons} ${commonArgs}`, (error, stdout, stderr) => { if(stderr) console.log(stderr); diff --git a/examples/chunkhash/README.md b/examples/chunkhash/README.md index 4dcaf9898..d706fb632 100644 --- a/examples/chunkhash/README.md +++ b/examples/chunkhash/README.md @@ -36,7 +36,7 @@ module.exports = { common: ["./vendor"] // optional }, output: { - path: path.join(__dirname, "js"), + path: path.join(__dirname, "dist"), filename: "[name].[chunkhash].js", chunkFilename: "[chunkhash].js" }, @@ -63,19 +63,19 @@ module.exports = { - + - + ``` -# js/common.[chunkhash].js +# dist/common.[chunkhash].js ``` javascript (window["webpackJsonp"] = window["webpackJsonp"] || []).push([[1],[ @@ -110,7 +110,7 @@ module.exports = __webpack_require__(/*! ./vendor */1); ],[[4,4,1]]]); ``` -# js/main.[chunkhash].js +# dist/main.[chunkhash].js ``` javascript (window["webpackJsonp"] = window["webpackJsonp"] || []).push([[0],[ @@ -146,7 +146,7 @@ Version: webpack next common.[chunkhash].js 727 bytes 1 [emitted] common b71c088662b7b530c545.js 264 bytes 2 [emitted] f6eb6a4d15b19e593a54.js 264 bytes 3 [emitted] - manifest.[chunkhash].js 7.15 KiB 4 [emitted] manifest + manifest.[chunkhash].js 7.16 KiB 4 [emitted] manifest Entrypoint main = manifest.[chunkhash].js common.[chunkhash].js main.[chunkhash].js Entrypoint common = manifest.[chunkhash].js common.[chunkhash].js chunk {0} main.[chunkhash].js (main) 90 bytes {1} [initial] [rendered] diff --git a/examples/chunkhash/template.md b/examples/chunkhash/template.md index e89fdf3c3..d158aa4f7 100644 --- a/examples/chunkhash/template.md +++ b/examples/chunkhash/template.md @@ -36,28 +36,28 @@ The configuration required for this is: - + - + ``` -# js/common.[chunkhash].js +# dist/common.[chunkhash].js ``` javascript -{{js/common.chunkhash.js}} +{{dist/common.chunkhash.js}} ``` -# js/main.[chunkhash].js +# dist/main.[chunkhash].js ``` javascript -{{js/main.chunkhash.js}} +{{dist/main.chunkhash.js}} ``` # Info diff --git a/examples/chunkhash/webpack.config.js b/examples/chunkhash/webpack.config.js index d7b49787e..d5b277caf 100644 --- a/examples/chunkhash/webpack.config.js +++ b/examples/chunkhash/webpack.config.js @@ -7,7 +7,7 @@ module.exports = { common: ["./vendor"] // optional }, output: { - path: path.join(__dirname, "js"), + path: path.join(__dirname, "dist"), filename: "[name].chunkhash.js", chunkFilename: "[chunkhash].js" }, diff --git a/examples/code-splitted-css-bundle/README.md b/examples/code-splitted-css-bundle/README.md index d2e1c32ec..cb0593fe5 100644 --- a/examples/code-splitted-css-bundle/README.md +++ b/examples/code-splitted-css-bundle/README.md @@ -62,11 +62,11 @@ module.exports = { }; ``` -# js/style.css +# dist/style.css ``` javascript body { - background: url(js/ce21cbdd9b894e6af794813eb3fdaf60.png); + background: url(dist/ce21cbdd9b894e6af794813eb3fdaf60.png); } ``` @@ -81,7 +81,7 @@ Version: webpack next ce21cbdd9b894e6af794813eb3fdaf60.png 119 bytes [emitted] 0.output.js 2.33 KiB 0 [emitted] output.js 22.4 KiB 1 [emitted] main - style.css 71 bytes 1 [emitted] main + style.css 73 bytes 1 [emitted] main Entrypoint main = output.js style.css chunk {0} 0.output.js 1.34 KiB {1} [rendered] > [1] ./example.js 2:0-20 @@ -120,7 +120,7 @@ Version: webpack next ce21cbdd9b894e6af794813eb3fdaf60.png 119 bytes [emitted] 0.output.js 403 bytes 0 [emitted] output.js 7.04 KiB 1 [emitted] main - style.css 71 bytes 1 [emitted] main + style.css 73 bytes 1 [emitted] main Entrypoint main = output.js style.css chunk {0} 0.output.js 1.34 KiB {1} [rendered] > [1] ./example.js 2:0-20 diff --git a/examples/code-splitted-css-bundle/template.md b/examples/code-splitted-css-bundle/template.md index a089bf516..02b31edab 100644 --- a/examples/code-splitted-css-bundle/template.md +++ b/examples/code-splitted-css-bundle/template.md @@ -29,10 +29,10 @@ {{webpack.config.js}} ``` -# js/style.css +# dist/style.css ``` javascript -{{js/style.css}} +{{dist/style.css}} ``` # Info diff --git a/examples/code-splitted-require.context-amd/README.md b/examples/code-splitted-require.context-amd/README.md index 6fc3d8f49..bab7e5b52 100644 --- a/examples/code-splitted-require.context-amd/README.md +++ b/examples/code-splitted-require.context-amd/README.md @@ -14,7 +14,7 @@ getTemplate("b", function(b) { }); ``` -# js/output.js +# dist/output.js
/******/ (function(modules) { /* webpackBootstrap */ }) @@ -173,7 +173,7 @@ getTemplate("b", function(b) { /******/ __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); }; /******/ /******/ // __webpack_public_path__ -/******/ __webpack_require__.p = "js/"; +/******/ __webpack_require__.p = "dist/"; /******/ /******/ // on error function for async loading /******/ __webpack_require__.oe = function(err) { console.error(err); throw err; }; @@ -217,7 +217,7 @@ getTemplate("b", function(b) { /******/ ]); ``` -# js/0.output.js +# dist/0.output.js ``` javascript (window["webpackJsonp"] = window["webpackJsonp"] || []).push([[0],[ diff --git a/examples/code-splitted-require.context-amd/template.md b/examples/code-splitted-require.context-amd/template.md index a25f85ab4..0b7b60cfd 100644 --- a/examples/code-splitted-require.context-amd/template.md +++ b/examples/code-splitted-require.context-amd/template.md @@ -4,16 +4,16 @@ {{example.js}} ``` -# js/output.js +# dist/output.js ``` javascript -{{js/output.js}} +{{dist/output.js}} ``` -# js/0.output.js +# dist/0.output.js ``` javascript -{{js/0.output.js}} +{{dist/0.output.js}} ``` # Info diff --git a/examples/code-splitted-require.context/README.md b/examples/code-splitted-require.context/README.md index c1bf6fa67..16019066a 100644 --- a/examples/code-splitted-require.context/README.md +++ b/examples/code-splitted-require.context/README.md @@ -14,7 +14,7 @@ getTemplate("b", function(b) { }); ``` -# js/output.js +# dist/output.js
/******/ (function(modules) { /* webpackBootstrap */ }) @@ -173,7 +173,7 @@ getTemplate("b", function(b) { /******/ __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); }; /******/ /******/ // __webpack_public_path__ -/******/ __webpack_require__.p = "js/"; +/******/ __webpack_require__.p = "dist/"; /******/ /******/ // on error function for async loading /******/ __webpack_require__.oe = function(err) { console.error(err); throw err; }; @@ -217,7 +217,7 @@ getTemplate("b", function(b) { /******/ ]); ``` -# js/0.output.js +# dist/0.output.js ``` javascript (window["webpackJsonp"] = window["webpackJsonp"] || []).push([[0],[ diff --git a/examples/code-splitted-require.context/template.md b/examples/code-splitted-require.context/template.md index a25f85ab4..0b7b60cfd 100644 --- a/examples/code-splitted-require.context/template.md +++ b/examples/code-splitted-require.context/template.md @@ -4,16 +4,16 @@ {{example.js}} ``` -# js/output.js +# dist/output.js ``` javascript -{{js/output.js}} +{{dist/output.js}} ``` -# js/0.output.js +# dist/0.output.js ``` javascript -{{js/0.output.js}} +{{dist/0.output.js}} ``` # Info diff --git a/examples/code-splitting-bundle-loader/README.md b/examples/code-splitting-bundle-loader/README.md index edc22368c..90a9427cf 100644 --- a/examples/code-splitting-bundle-loader/README.md +++ b/examples/code-splitting-bundle-loader/README.md @@ -17,7 +17,7 @@ module.exports = "It works"; ``` -# js/output.js +# dist/output.js
/******/ (function(modules) { /* webpackBootstrap */ }) @@ -176,7 +176,7 @@ module.exports = "It works"; /******/ __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); }; /******/ /******/ // __webpack_public_path__ -/******/ __webpack_require__.p = "js/"; +/******/ __webpack_require__.p = "dist/"; /******/ /******/ // on error function for async loading /******/ __webpack_require__.oe = function(err) { console.error(err); throw err; }; @@ -236,7 +236,7 @@ __webpack_require__(/*! bundle-loader!./file.js */ 0)(function(fileJsExports) { /******/ ]); ``` -# js/0.output.js +# dist/0.output.js ``` javascript (window["webpackJsonp"] = window["webpackJsonp"] || []).push([[0],{ @@ -285,7 +285,7 @@ Hash: 0a1b2c3d4e5f6a7b8c9d Version: webpack next Asset Size Chunks Chunk Names 0.output.js 98 bytes 0 [emitted] - output.js 1.78 KiB 1 [emitted] main + output.js 1.79 KiB 1 [emitted] main Entrypoint main = output.js chunk {0} 0.output.js 28 bytes {1} [rendered] > [0] (webpack)/node_modules/bundle-loader!./file.js 7:0-14:2 diff --git a/examples/code-splitting-bundle-loader/template.md b/examples/code-splitting-bundle-loader/template.md index 16a6094f3..f7c26e8b1 100644 --- a/examples/code-splitting-bundle-loader/template.md +++ b/examples/code-splitting-bundle-loader/template.md @@ -15,16 +15,16 @@ The bundle loader is used to create a wrapper module for `file.js` that loads th ``` -# js/output.js +# dist/output.js ``` javascript -{{js/output.js}} +{{dist/output.js}} ``` -# js/0.output.js +# dist/0.output.js ``` javascript -{{js/0.output.js}} +{{dist/0.output.js}} ``` # Info diff --git a/examples/code-splitting-harmony/README.md b/examples/code-splitting-harmony/README.md index 6eceedb12..15ecec146 100644 --- a/examples/code-splitting-harmony/README.md +++ b/examples/code-splitting-harmony/README.md @@ -25,7 +25,7 @@ Promise.all([loadC("1"), loadC("2")]).then(function(arr) { ``` -# js/output.js +# dist/output.js
/******/ (function(modules) { /* webpackBootstrap */ }) @@ -184,7 +184,7 @@ Promise.all([loadC("1"), loadC("2")]).then(function(arr) { /******/ __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); }; /******/ /******/ // __webpack_public_path__ -/******/ __webpack_require__.p = "js/"; +/******/ __webpack_require__.p = "dist/"; /******/ /******/ // on error function for async loading /******/ __webpack_require__.oe = function(err) { console.error(err); throw err; }; diff --git a/examples/code-splitting-harmony/template.md b/examples/code-splitting-harmony/template.md index 70bbcd6aa..5f6a68cdf 100644 --- a/examples/code-splitting-harmony/template.md +++ b/examples/code-splitting-harmony/template.md @@ -13,10 +13,10 @@ Providing dynamic expressions to `import` is possible. The same limits as with d ``` -# js/output.js +# dist/output.js ``` javascript -{{js/output.js}} +{{dist/output.js}} ``` diff --git a/examples/code-splitting-native-import-context-filter/README.md b/examples/code-splitting-native-import-context-filter/README.md index a6f184454..b982aa9cd 100644 --- a/examples/code-splitting-native-import-context-filter/README.md +++ b/examples/code-splitting-native-import-context-filter/README.md @@ -43,7 +43,7 @@ var foo = "foo"; export default foo; ``` -# js/output.js +# dist/output.js
/******/ (function(modules) { /* webpackBootstrap */ }) @@ -202,7 +202,7 @@ export default foo; /******/ __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); }; /******/ /******/ // __webpack_public_path__ -/******/ __webpack_require__.p = "js/"; +/******/ __webpack_require__.p = "dist/"; /******/ /******/ // on error function for async loading /******/ __webpack_require__.oe = function(err) { console.error(err); throw err; }; @@ -321,7 +321,7 @@ Version: webpack next 0.output.js 436 bytes 0 [emitted] 1.output.js 445 bytes 1 [emitted] 2.output.js 439 bytes 2 [emitted] - output.js 8.19 KiB 3 [emitted] main + output.js 8.2 KiB 3 [emitted] main Entrypoint main = output.js chunk {0} 0.output.js 41 bytes {3} [rendered] [0] ./templates/foo.js 41 bytes {0} [optional] [built] diff --git a/examples/code-splitting-native-import-context-filter/template.md b/examples/code-splitting-native-import-context-filter/template.md index deb3b2d4d..31fa2aeb0 100644 --- a/examples/code-splitting-native-import-context-filter/template.md +++ b/examples/code-splitting-native-import-context-filter/template.md @@ -22,10 +22,10 @@ All templates are of this pattern: {{templates/foo.js}} ``` -# js/output.js +# dist/output.js ``` javascript -{{js/output.js}} +{{dist/output.js}} ``` # Info diff --git a/examples/code-splitting-native-import-context/README.md b/examples/code-splitting-native-import-context/README.md index 6631670c4..d7f2a10b8 100644 --- a/examples/code-splitting-native-import-context/README.md +++ b/examples/code-splitting-native-import-context/README.md @@ -32,7 +32,7 @@ var foo = "foo"; export default foo; ``` -# js/output.js +# dist/output.js
/******/ (function(modules) { /* webpackBootstrap */ }) @@ -191,7 +191,7 @@ export default foo; /******/ __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); }; /******/ /******/ // __webpack_public_path__ -/******/ __webpack_require__.p = "js/"; +/******/ __webpack_require__.p = "dist/"; /******/ /******/ // on error function for async loading /******/ __webpack_require__.oe = function(err) { console.error(err); throw err; }; diff --git a/examples/code-splitting-native-import-context/template.md b/examples/code-splitting-native-import-context/template.md index f05bae222..f26cba077 100644 --- a/examples/code-splitting-native-import-context/template.md +++ b/examples/code-splitting-native-import-context/template.md @@ -18,10 +18,10 @@ All templates are of this pattern: {{templates/foo.js}} ``` -# js/output.js +# dist/output.js ``` javascript -{{js/output.js}} +{{dist/output.js}} ``` # Info diff --git a/examples/code-splitting-specify-chunk-name/README.md b/examples/code-splitting-specify-chunk-name/README.md index 3414d9ef3..04edfc752 100644 --- a/examples/code-splitting-specify-chunk-name/README.md +++ b/examples/code-splitting-specify-chunk-name/README.md @@ -32,7 +32,7 @@ var foo = "foo"; export default foo; ``` -# js/output.js +# dist/output.js
/******/ (function(modules) { /* webpackBootstrap */ }) @@ -191,7 +191,7 @@ export default foo; /******/ __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); }; /******/ /******/ // __webpack_public_path__ -/******/ __webpack_require__.p = "js/"; +/******/ __webpack_require__.p = "dist/"; /******/ /******/ // on error function for async loading /******/ __webpack_require__.oe = function(err) { console.error(err); throw err; }; @@ -336,7 +336,7 @@ Version: webpack next 0.output.js 114 bytes 0 [emitted] chunk-bar-baz2 1.output.js 115 bytes 1 [emitted] chunk-bar-baz0 2.output.js 113 bytes 2 [emitted] chunk-foo - output.js 2.11 KiB 3 [emitted] main + output.js 2.12 KiB 3 [emitted] main Entrypoint main = output.js chunk {0} 0.output.js (chunk-bar-baz2) 41 bytes {3} [rendered] [1] ./templates/baz.js 41 bytes {0} [optional] [built] diff --git a/examples/code-splitting-specify-chunk-name/template.md b/examples/code-splitting-specify-chunk-name/template.md index 0f40b16dd..b85d38e98 100644 --- a/examples/code-splitting-specify-chunk-name/template.md +++ b/examples/code-splitting-specify-chunk-name/template.md @@ -18,10 +18,10 @@ All templates are of this pattern: {{templates/foo.js}} ``` -# js/output.js +# dist/output.js ``` javascript -{{js/output.js}} +{{dist/output.js}} ``` # Info diff --git a/examples/code-splitting/README.md b/examples/code-splitting/README.md index e2094ec72..745e30c80 100644 --- a/examples/code-splitting/README.md +++ b/examples/code-splitting/README.md @@ -36,7 +36,7 @@ require.ensure(["c"], function(require) { ``` -# js/output.js +# dist/output.js
/******/ (function(modules) { /* webpackBootstrap */ }) @@ -195,7 +195,7 @@ require.ensure(["c"], function(require) { /******/ __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); }; /******/ /******/ // __webpack_public_path__ -/******/ __webpack_require__.p = "js/"; +/******/ __webpack_require__.p = "dist/"; /******/ /******/ // on error function for async loading /******/ __webpack_require__.oe = function(err) { console.error(err); throw err; }; @@ -254,7 +254,7 @@ __webpack_require__.e(/*! require.ensure */ 0).then((function(require) { /******/ ]); ``` -# js/0.output.js +# dist/0.output.js ``` javascript (window["webpackJsonp"] = window["webpackJsonp"] || []).push([[0],[ diff --git a/examples/code-splitting/template.md b/examples/code-splitting/template.md index 753de2f09..7c21f7ae5 100644 --- a/examples/code-splitting/template.md +++ b/examples/code-splitting/template.md @@ -31,22 +31,22 @@ You can see that chunks are loaded via JSONP. The additional chunks are pretty s ``` -# js/output.js +# dist/output.js ``` javascript -{{js/output.js}} +{{dist/output.js}} ``` -# js/0.output.js +# dist/0.output.js ``` javascript -{{js/0.output.js}} +{{dist/0.output.js}} ``` Minimized ``` javascript -{{production:js/0.output.js}} +{{production:dist/0.output.js}} ``` # Info diff --git a/examples/coffee-script/README.md b/examples/coffee-script/README.md index d1804c894..fed769cec 100644 --- a/examples/coffee-script/README.md +++ b/examples/coffee-script/README.md @@ -23,7 +23,7 @@ console.log "yeah coffee-script" module.exports = 42 ``` -# js/output.js +# dist/output.js
/******/ (function(modules) { /* webpackBootstrap */ }) @@ -92,7 +92,7 @@ module.exports = 42 /******/ __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); }; /******/ /******/ // __webpack_public_path__ -/******/ __webpack_require__.p = "js/"; +/******/ __webpack_require__.p = "dist/"; /******/ /******/ // Load entry module and return exports /******/ return __webpack_require__(__webpack_require__.s = 0); @@ -154,7 +154,7 @@ module.exports = 42; Hash: 0a1b2c3d4e5f6a7b8c9d Version: webpack next Asset Size Chunks Chunk Names -output.js 3.33 KiB 0 [emitted] main +output.js 3.34 KiB 0 [emitted] main Entrypoint main = output.js chunk {0} output.js (main) 206 bytes [entry] [rendered] > main [0] ./example.js @@ -173,7 +173,7 @@ chunk {0} output.js (main) 206 bytes [entry] [rendered] Hash: 0a1b2c3d4e5f6a7b8c9d Version: webpack next Asset Size Chunks Chunk Names -output.js 706 bytes 0 [emitted] main +output.js 708 bytes 0 [emitted] main Entrypoint main = output.js chunk {0} output.js (main) 206 bytes [entry] [rendered] > main [2] ./example.js diff --git a/examples/coffee-script/template.md b/examples/coffee-script/template.md index b4e631d5a..bef6e314e 100644 --- a/examples/coffee-script/template.md +++ b/examples/coffee-script/template.md @@ -17,10 +17,10 @@ {{cup2.coffee}} ``` -# js/output.js +# dist/output.js ``` javascript -{{js/output.js}} +{{dist/output.js}} ``` # Info diff --git a/examples/common-chunk-and-vendor-chunk/README.md b/examples/common-chunk-and-vendor-chunk/README.md index 589543a66..8c087bb44 100644 --- a/examples/common-chunk-and-vendor-chunk/README.md +++ b/examples/common-chunk-and-vendor-chunk/README.md @@ -48,7 +48,7 @@ module.exports = { // common: [] }, output: { - path: path.join(__dirname, "js"), + path: path.join(__dirname, "dist"), filename: "[name].js" }, plugins: [ @@ -61,7 +61,7 @@ module.exports = { }; ``` -# js/vendor.js +# dist/vendor.js
/******/ (function(modules) { /* webpackBootstrap */ }) @@ -234,7 +234,7 @@ module.exports = { /******/ __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); }; /******/ /******/ // __webpack_public_path__ -/******/ __webpack_require__.p = "js/"; +/******/ __webpack_require__.p = "dist/"; /******/ /******/ // on error function for async loading /******/ __webpack_require__.oe = function(err) { console.error(err); throw err; }; @@ -290,7 +290,7 @@ module.exports = "vendor2"; /******/ ]); ``` -# js/common.js +# dist/common.js ``` javascript (window["webpackJsonp"] = window["webpackJsonp"] || []).push([[4],{ @@ -320,7 +320,7 @@ module.exports = "utility3"; }]); ``` -# js/pageA.js +# dist/pageA.js ``` javascript (window["webpackJsonp"] = window["webpackJsonp"] || []).push([[1],[ @@ -353,7 +353,7 @@ module.exports = "utility1"; ],[[3,0,4,1]]]); ``` -# js/pageB.js +# dist/pageB.js ``` javascript (window["webpackJsonp"] = window["webpackJsonp"] || []).push([[2],{ @@ -375,7 +375,7 @@ module.exports = "pageB"; },[[6,0,4,2]]]); ``` -# js/pageC.js +# dist/pageC.js ``` javascript (window["webpackJsonp"] = window["webpackJsonp"] || []).push([[3],{ @@ -456,7 +456,7 @@ common.js 132 bytes 0 [emitted] common pageC.js 119 bytes 1 [emitted] pageC pageB.js 119 bytes 2 [emitted] pageB pageA.js 157 bytes 3 [emitted] pageA -vendor.js 1.82 KiB 4 [emitted] vendor +vendor.js 1.83 KiB 4 [emitted] vendor Entrypoint vendor = vendor.js Entrypoint pageA = vendor.js common.js pageA.js Entrypoint pageB = vendor.js common.js pageB.js diff --git a/examples/common-chunk-and-vendor-chunk/template.md b/examples/common-chunk-and-vendor-chunk/template.md index 28325646f..c6b678a0e 100644 --- a/examples/common-chunk-and-vendor-chunk/template.md +++ b/examples/common-chunk-and-vendor-chunk/template.md @@ -37,34 +37,34 @@ With this bundle configuration, you would load your third party libraries, then {{webpack.config.js}} ``` -# js/vendor.js +# dist/vendor.js ``` javascript -{{js/vendor.js}} +{{dist/vendor.js}} ``` -# js/common.js +# dist/common.js ``` javascript -{{js/common.js}} +{{dist/common.js}} ``` -# js/pageA.js +# dist/pageA.js ``` javascript -{{js/pageA.js}} +{{dist/pageA.js}} ``` -# js/pageB.js +# dist/pageB.js ``` javascript -{{js/pageB.js}} +{{dist/pageB.js}} ``` -# js/pageC.js +# dist/pageC.js ``` javascript -{{js/pageC.js}} +{{dist/pageC.js}} ``` # Info diff --git a/examples/common-chunk-and-vendor-chunk/webpack.config.js b/examples/common-chunk-and-vendor-chunk/webpack.config.js index 8eedccc92..f89befa67 100644 --- a/examples/common-chunk-and-vendor-chunk/webpack.config.js +++ b/examples/common-chunk-and-vendor-chunk/webpack.config.js @@ -12,7 +12,7 @@ module.exports = { // common: [] }, output: { - path: path.join(__dirname, "js"), + path: path.join(__dirname, "dist"), filename: "[name].js" }, plugins: [ diff --git a/examples/common-chunk-grandchildren/README.md b/examples/common-chunk-grandchildren/README.md index 4d2439544..b3661ad5f 100644 --- a/examples/common-chunk-grandchildren/README.md +++ b/examples/common-chunk-grandchildren/README.md @@ -93,7 +93,7 @@ module.exports = [ main: ["./example.js"] }, output: { - path: path.resolve(__dirname, "js"), + path: path.resolve(__dirname, "dist"), filename: "output.js" }, plugins: [ @@ -114,7 +114,7 @@ module.exports = [ main: ["./example.js"] }, output: { - path: path.resolve(__dirname, "js"), + path: path.resolve(__dirname, "dist"), filename: "asyncoutput.js" }, plugins: [ @@ -133,7 +133,7 @@ module.exports = [ ]; ``` -# js/output.js +# dist/output.js
/******/ (function(modules) { /* webpackBootstrap */ }) @@ -292,7 +292,7 @@ module.exports = [ /******/ __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); }; /******/ /******/ // __webpack_public_path__ -/******/ __webpack_require__.p = "js/"; +/******/ __webpack_require__.p = "dist/"; /******/ /******/ // on error function for async loading /******/ __webpack_require__.oe = function(err) { console.error(err); throw err; }; @@ -363,7 +363,7 @@ module.exports = function() { /******/ ]); ``` -# js/0.output.js +# dist/0.output.js ``` javascript (window["webpackJsonp"] = window["webpackJsonp"] || []).push([[0],{ @@ -388,7 +388,7 @@ module.exports = function() { }]); ``` -# js/1.output.js +# dist/1.output.js ``` javascript (window["webpackJsonp"] = window["webpackJsonp"] || []).push([[1],{ @@ -414,7 +414,7 @@ module.exports = function() { }]); ``` -# js/2.output.js +# dist/2.output.js ``` javascript (window["webpackJsonp"] = window["webpackJsonp"] || []).push([[2],{ @@ -439,7 +439,7 @@ module.exports = function() { }]); ``` -# js/asyncoutput.js +# dist/asyncoutput.js ``` javascript /******/ (function(modules) { // webpackBootstrap @@ -596,7 +596,7 @@ module.exports = function() { /******/ __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); }; /******/ /******/ // __webpack_public_path__ -/******/ __webpack_require__.p = "js/"; +/******/ __webpack_require__.p = "dist/"; /******/ /******/ // on error function for async loading /******/ __webpack_require__.oe = function(err) { console.error(err); throw err; }; @@ -649,7 +649,7 @@ module.exports = __webpack_require__(/*! ./example.js */0); /******/ ]); ``` -# js/0.asyncoutput.js +# dist/0.asyncoutput.js ``` javascript (window["webpackJsonp"] = window["webpackJsonp"] || []).push([[0],{ @@ -671,7 +671,7 @@ module.exports = function() { }]); ``` -# js/1.asyncoutput.js +# dist/1.asyncoutput.js ``` javascript (window["webpackJsonp"] = window["webpackJsonp"] || []).push([[1],{ @@ -697,7 +697,7 @@ module.exports = function() { }]); ``` -# js/2.asyncoutput.js +# dist/2.asyncoutput.js ``` javascript (window["webpackJsonp"] = window["webpackJsonp"] || []).push([[2],{ @@ -722,7 +722,7 @@ module.exports = function() { }]); ``` -# js/3.asyncoutput.js +# dist/3.asyncoutput.js ``` javascript (window["webpackJsonp"] = window["webpackJsonp"] || []).push([[3],{ @@ -829,7 +829,7 @@ Child 0.output.js 138 bytes 0 [emitted] 1.output.js 176 bytes 1 [emitted] 2.output.js 138 bytes 2 [emitted] - output.js 1.8 KiB 3 [emitted] main + output.js 1.81 KiB 3 [emitted] main Entrypoint main = output.js chunk {0} 0.output.js 142 bytes {3} [rendered] > [3] ./pageB.js 3:1-6:3 diff --git a/examples/common-chunk-grandchildren/template.md b/examples/common-chunk-grandchildren/template.md index 572ffd206..92259896d 100644 --- a/examples/common-chunk-grandchildren/template.md +++ b/examples/common-chunk-grandchildren/template.md @@ -55,58 +55,58 @@ You can see that webpack outputs four files/chunks: {{webpack.config.js}} ``` -# js/output.js +# dist/output.js ``` javascript -{{js/output.js}} +{{dist/output.js}} ``` -# js/0.output.js +# dist/0.output.js ``` javascript -{{js/0.output.js}} +{{dist/0.output.js}} ``` -# js/1.output.js +# dist/1.output.js ``` javascript -{{js/1.output.js}} +{{dist/1.output.js}} ``` -# js/2.output.js +# dist/2.output.js ``` javascript -{{js/2.output.js}} +{{dist/2.output.js}} ``` -# js/asyncoutput.js +# dist/asyncoutput.js ``` javascript -{{js/asyncoutput.js}} +{{dist/asyncoutput.js}} ``` -# js/0.asyncoutput.js +# dist/0.asyncoutput.js ``` javascript -{{js/0.asyncoutput.js}} +{{dist/0.asyncoutput.js}} ``` -# js/1.asyncoutput.js +# dist/1.asyncoutput.js ``` javascript -{{js/1.asyncoutput.js}} +{{dist/1.asyncoutput.js}} ``` -# js/2.asyncoutput.js +# dist/2.asyncoutput.js ``` javascript -{{js/2.asyncoutput.js}} +{{dist/2.asyncoutput.js}} ``` -# js/3.asyncoutput.js +# dist/3.asyncoutput.js ``` javascript -{{js/3.asyncoutput.js}} +{{dist/3.asyncoutput.js}} ``` # Info diff --git a/examples/common-chunk-grandchildren/webpack.config.js b/examples/common-chunk-grandchildren/webpack.config.js index 088340f5c..628c48357 100644 --- a/examples/common-chunk-grandchildren/webpack.config.js +++ b/examples/common-chunk-grandchildren/webpack.config.js @@ -9,7 +9,7 @@ module.exports = [ main: ["./example.js"] }, output: { - path: path.resolve(__dirname, "js"), + path: path.resolve(__dirname, "dist"), filename: "output.js" }, plugins: [ @@ -30,7 +30,7 @@ module.exports = [ main: ["./example.js"] }, output: { - path: path.resolve(__dirname, "js"), + path: path.resolve(__dirname, "dist"), filename: "asyncoutput.js" }, plugins: [ diff --git a/examples/commonjs/README.md b/examples/commonjs/README.md index cb93dab93..2196bced8 100644 --- a/examples/commonjs/README.md +++ b/examples/commonjs/README.md @@ -35,7 +35,7 @@ exports.add = function() { }; ``` -# js/output.js +# dist/output.js
/******/ (function(modules) { /* webpackBootstrap */ }) @@ -104,7 +104,7 @@ exports.add = function() { /******/ __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); }; /******/ /******/ // __webpack_public_path__ -/******/ __webpack_require__.p = "js/"; +/******/ __webpack_require__.p = "dist/"; /******/ /******/ // Load entry module and return exports /******/ return __webpack_require__(__webpack_require__.s = 0); @@ -186,7 +186,7 @@ chunk {0} output.js (main) 329 bytes [entry] [rendered] Hash: 0a1b2c3d4e5f6a7b8c9d Version: webpack next Asset Size Chunks Chunk Names -output.js 738 bytes 0 [emitted] main +output.js 740 bytes 0 [emitted] main Entrypoint main = output.js chunk {0} output.js (main) 329 bytes [entry] [rendered] > main [2] ./example.js diff --git a/examples/commonjs/template.md b/examples/commonjs/template.md index 86cb27707..5ed0539fc 100644 --- a/examples/commonjs/template.md +++ b/examples/commonjs/template.md @@ -24,10 +24,10 @@ You can also see the info messages webpack prints to console (for both normal an {{math.js}} ``` -# js/output.js +# dist/output.js ``` javascript -{{js/output.js}} +{{dist/output.js}} ``` # Info diff --git a/examples/css-bundle/README.md b/examples/css-bundle/README.md index 622ef34c1..a4559ef52 100644 --- a/examples/css-bundle/README.md +++ b/examples/css-bundle/README.md @@ -44,7 +44,7 @@ module.exports = { }; ``` -# js/output.js +# dist/output.js
/******/ (function(modules) { /* webpackBootstrap */ }) @@ -113,7 +113,7 @@ module.exports = { /******/ __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); }; /******/ /******/ // __webpack_public_path__ -/******/ __webpack_require__.p = "js/"; +/******/ __webpack_require__.p = "dist/"; /******/ /******/ // Load entry module and return exports /******/ return __webpack_require__(__webpack_require__.s = 0); @@ -148,11 +148,11 @@ __webpack_require__(/*! ./style.css */ 1); /******/ ]); ``` -# js/style.css +# dist/style.css ``` css body { - background: url(js/ce21cbdd9b894e6af794813eb3fdaf60.png); + background: url(dist/ce21cbdd9b894e6af794813eb3fdaf60.png); } ``` @@ -166,7 +166,7 @@ Version: webpack next Asset Size Chunks Chunk Names ce21cbdd9b894e6af794813eb3fdaf60.png 119 bytes [emitted] output.js 2.97 KiB 0 [emitted] main - style.css 69 bytes 0 [emitted] main + style.css 71 bytes 0 [emitted] main Entrypoint main = output.js style.css chunk {0} output.js, style.css (main) 64 bytes [entry] [rendered] > main [0] ./example.js @@ -194,8 +194,8 @@ Hash: 0a1b2c3d4e5f6a7b8c9d Version: webpack next Asset Size Chunks Chunk Names ce21cbdd9b894e6af794813eb3fdaf60.png 119 bytes [emitted] - output.js 570 bytes 0 [emitted] main - style.css 69 bytes 0 [emitted] main + output.js 572 bytes 0 [emitted] main + style.css 71 bytes 0 [emitted] main Entrypoint main = output.js style.css chunk {0} output.js, style.css (main) 64 bytes [entry] [rendered] > main [1] ./example.js diff --git a/examples/css-bundle/template.md b/examples/css-bundle/template.md index 7d3067c42..1e45f8a85 100644 --- a/examples/css-bundle/template.md +++ b/examples/css-bundle/template.md @@ -17,16 +17,16 @@ {{webpack.config.js}} ``` -# js/output.js +# dist/output.js ``` javascript -{{js/output.js}} +{{dist/output.js}} ``` -# js/style.css +# dist/style.css ``` css -{{js/style.css}} +{{dist/style.css}} ``` # Info diff --git a/examples/dll-app-and-vendor/0-vendor/README.md b/examples/dll-app-and-vendor/0-vendor/README.md index 119aa516c..70018c9c1 100644 --- a/examples/dll-app-and-vendor/0-vendor/README.md +++ b/examples/dll-app-and-vendor/0-vendor/README.md @@ -18,13 +18,13 @@ module.exports = { entry: ["example-vendor"], output: { filename: "vendor.js", // best use [hash] here too - path: path.resolve(__dirname, "js"), + path: path.resolve(__dirname, "dist"), library: "vendor_lib_[hash]", }, plugins: [ new webpack.DllPlugin({ name: "vendor_lib_[hash]", - path: path.resolve(__dirname, "js/vendor-manifest.json"), + path: path.resolve(__dirname, "dist/vendor-manifest.json"), }), ], }; @@ -38,10 +38,10 @@ export function square(n) { } ``` -# js/vendor.js +# dist/vendor.js ``` javascript -var vendor_lib_05435546db8fb3868aaf = +var vendor_lib_3312d7a9aacfa149e455 = ```
/******/ (function(modules) { /* webpackBootstrap */ }) @@ -110,7 +110,7 @@ var vendor_lib_05435546db8fb3868aaf = /******/ __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); }; /******/ /******/ // __webpack_public_path__ -/******/ __webpack_require__.p = "js/"; +/******/ __webpack_require__.p = "dist/"; /******/ /******/ // Load entry module and return exports /******/ return __webpack_require__(__webpack_require__.s = 0); @@ -153,10 +153,10 @@ function square(n) { /******/ ]); ``` -# js/vendor-manifest.json +# dist/vendor-manifest.json ``` javascript -{"name":"vendor_lib_05435546db8fb3868aaf","content":{"../node_modules/example-vendor.js":{"id":1,"buildMeta":{"exportsType":"namespace","providedExports":["square"]}}}} +{"name":"vendor_lib_3312d7a9aacfa149e455","content":{"../node_modules/example-vendor.js":{"id":1,"buildMeta":{"exportsType":"namespace","providedExports":["square"]}}}} ``` # Info @@ -166,8 +166,8 @@ function square(n) { ``` Hash: 0a1b2c3d4e5f6a7b8c9d Version: webpack next - Asset Size Chunks Chunk Names -vendor.js 3.3 KiB 0 [emitted] main + Asset Size Chunks Chunk Names +vendor.js 3.31 KiB 0 [emitted] main Entrypoint main = vendor.js chunk {0} vendor.js (main) 60 bytes [entry] [rendered] > main [0] dll main @@ -183,7 +183,7 @@ chunk {0} vendor.js (main) 60 bytes [entry] [rendered] Hash: 0a1b2c3d4e5f6a7b8c9d Version: webpack next Asset Size Chunks Chunk Names -vendor.js 702 bytes 0 [emitted] main +vendor.js 704 bytes 0 [emitted] main Entrypoint main = vendor.js chunk {0} vendor.js (main) 60 bytes [entry] [rendered] > main [1] dll main diff --git a/examples/dll-app-and-vendor/0-vendor/template.md b/examples/dll-app-and-vendor/0-vendor/template.md index 5a3c324f6..e92fcfa31 100644 --- a/examples/dll-app-and-vendor/0-vendor/template.md +++ b/examples/dll-app-and-vendor/0-vendor/template.md @@ -18,16 +18,16 @@ A manifest is creates which includes mappings from module names to internal ids. {{../node_modules/example-vendor.js}} ``` -# js/vendor.js +# dist/vendor.js ``` javascript -{{js/vendor.js}} +{{dist/vendor.js}} ``` -# js/vendor-manifest.json +# dist/vendor-manifest.json ``` javascript -{{js/vendor-manifest.json}} +{{dist/vendor-manifest.json}} ``` # Info diff --git a/examples/dll-app-and-vendor/0-vendor/webpack.config.js b/examples/dll-app-and-vendor/0-vendor/webpack.config.js index 327df1d75..3c56c5ccf 100644 --- a/examples/dll-app-and-vendor/0-vendor/webpack.config.js +++ b/examples/dll-app-and-vendor/0-vendor/webpack.config.js @@ -7,13 +7,13 @@ module.exports = { entry: ["example-vendor"], output: { filename: "vendor.js", // best use [hash] here too - path: path.resolve(__dirname, "js"), + path: path.resolve(__dirname, "dist"), library: "vendor_lib_[hash]", }, plugins: [ new webpack.DllPlugin({ name: "vendor_lib_[hash]", - path: path.resolve(__dirname, "js/vendor-manifest.json"), + path: path.resolve(__dirname, "dist/vendor-manifest.json"), }), ], }; diff --git a/examples/dll-app-and-vendor/1-app/README.md b/examples/dll-app-and-vendor/1-app/README.md index 630ef9fe3..7c705a28c 100644 --- a/examples/dll-app-and-vendor/1-app/README.md +++ b/examples/dll-app-and-vendor/1-app/README.md @@ -14,12 +14,12 @@ module.exports = { entry: "./example-app", output: { filename: "app.js", - path: path.resolve(__dirname, "js"), + path: path.resolve(__dirname, "dist"), }, plugins: [ new webpack.DllReferencePlugin({ context: ".", - manifest: require("../0-vendor/js/vendor-manifest.json"), // eslint-disable-line + manifest: require("../0-vendor/dist/vendor-manifest.json"), // eslint-disable-line }), ], }; @@ -46,7 +46,7 @@ console.log(new square(7)); ``` -# js/app.js +# dist/app.js
/******/ (function(modules) { /* webpackBootstrap */ }) @@ -115,7 +115,7 @@ console.log(new square(7)); /******/ __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); }; /******/ /******/ // __webpack_public_path__ -/******/ __webpack_require__.p = "js/"; +/******/ __webpack_require__.p = "dist/"; /******/ /******/ // Load entry module and return exports /******/ return __webpack_require__(__webpack_require__.s = 0); @@ -146,22 +146,22 @@ console.log(new example_vendor__WEBPACK_IMPORTED_MODULE_0__["square"](7)); /***/ }), /* 1 */ /*!******************************************************************************************************!*\ - !*** delegated ../node_modules/example-vendor.js from dll-reference vendor_lib_05435546db8fb3868aaf ***! + !*** delegated ../node_modules/example-vendor.js from dll-reference vendor_lib_3312d7a9aacfa149e455 ***! \******************************************************************************************************/ /*! exports provided: square */ /***/ (function(module, exports, __webpack_require__) { -module.exports = (__webpack_require__(/*! dll-reference vendor_lib_05435546db8fb3868aaf */ 2))(1); +module.exports = (__webpack_require__(/*! dll-reference vendor_lib_3312d7a9aacfa149e455 */ 2))(1); /***/ }), /* 2 */ /*!**************************************************!*\ - !*** external "vendor_lib_05435546db8fb3868aaf" ***! + !*** external "vendor_lib_3312d7a9aacfa149e455" ***! \**************************************************/ /*! no static exports found */ /***/ (function(module, exports) { -module.exports = vendor_lib_05435546db8fb3868aaf; +module.exports = vendor_lib_3312d7a9aacfa149e455; /***/ }) /******/ ]); @@ -182,13 +182,13 @@ chunk {0} app.js (main) 182 bytes [entry] [rendered] [0] ./example-app.js 98 bytes {0} [built] [no exports] single entry ./example-app main - [1] delegated ../node_modules/example-vendor.js from dll-reference vendor_lib_05435546db8fb3868aaf 42 bytes {0} [built] + [1] delegated ../node_modules/example-vendor.js from dll-reference vendor_lib_3312d7a9aacfa149e455 42 bytes {0} [built] [exports: square] harmony side effect evaluation example-vendor [0] ./example-app.js 1:0-40 harmony import specifier example-vendor [0] ./example-app.js 3:12-18 harmony import specifier example-vendor [0] ./example-app.js 4:16-22 - [2] external "vendor_lib_05435546db8fb3868aaf" 42 bytes {0} [built] - delegated source dll-reference vendor_lib_05435546db8fb3868aaf [1] delegated ../node_modules/example-vendor.js from dll-reference vendor_lib_05435546db8fb3868aaf + [2] external "vendor_lib_3312d7a9aacfa149e455" 42 bytes {0} [built] + delegated source dll-reference vendor_lib_3312d7a9aacfa149e455 [1] delegated ../node_modules/example-vendor.js from dll-reference vendor_lib_3312d7a9aacfa149e455 ``` ## Production mode @@ -197,17 +197,17 @@ chunk {0} app.js (main) 182 bytes [entry] [rendered] Hash: 0a1b2c3d4e5f6a7b8c9d Version: webpack next Asset Size Chunks Chunk Names -app.js 734 bytes 0 [emitted] main +app.js 736 bytes 0 [emitted] main Entrypoint main = app.js chunk {0} app.js (main) 182 bytes [entry] [rendered] > main [2] ./example-app.js - [0] delegated ../node_modules/example-vendor.js from dll-reference vendor_lib_05435546db8fb3868aaf 42 bytes {0} [built] + [0] delegated ../node_modules/example-vendor.js from dll-reference vendor_lib_3312d7a9aacfa149e455 42 bytes {0} [built] [exports: square] harmony side effect evaluation example-vendor [2] ./example-app.js 1:0-40 harmony import specifier example-vendor [2] ./example-app.js 3:12-18 harmony import specifier example-vendor [2] ./example-app.js 4:16-22 - [1] external "vendor_lib_05435546db8fb3868aaf" 42 bytes {0} [built] - delegated source dll-reference vendor_lib_05435546db8fb3868aaf [0] delegated ../node_modules/example-vendor.js from dll-reference vendor_lib_05435546db8fb3868aaf + [1] external "vendor_lib_3312d7a9aacfa149e455" 42 bytes {0} [built] + delegated source dll-reference vendor_lib_3312d7a9aacfa149e455 [0] delegated ../node_modules/example-vendor.js from dll-reference vendor_lib_3312d7a9aacfa149e455 [2] ./example-app.js 98 bytes {0} [built] [no exports] single entry ./example-app main diff --git a/examples/dll-app-and-vendor/1-app/template.md b/examples/dll-app-and-vendor/1-app/template.md index 62a064659..288f12067 100644 --- a/examples/dll-app-and-vendor/1-app/template.md +++ b/examples/dll-app-and-vendor/1-app/template.md @@ -20,10 +20,10 @@ The previously built vendor dll is used. The DllReferencePlugin reads the conten {{example.html}} ``` -# js/app.js +# dist/app.js ``` javascript -{{js/app.js}} +{{dist/app.js}} ``` # Info diff --git a/examples/dll-app-and-vendor/1-app/webpack.config.js b/examples/dll-app-and-vendor/1-app/webpack.config.js index c60af2ba2..0b45b7d07 100644 --- a/examples/dll-app-and-vendor/1-app/webpack.config.js +++ b/examples/dll-app-and-vendor/1-app/webpack.config.js @@ -7,12 +7,12 @@ module.exports = { entry: "./example-app", output: { filename: "app.js", - path: path.resolve(__dirname, "js"), + path: path.resolve(__dirname, "dist"), }, plugins: [ new webpack.DllReferencePlugin({ context: ".", - manifest: require("../0-vendor/js/vendor-manifest.json"), // eslint-disable-line + manifest: require("../0-vendor/dist/vendor-manifest.json"), // eslint-disable-line }), ], }; diff --git a/examples/dll-user/README.md b/examples/dll-user/README.md index 86a93791c..a03b3cc3e 100644 --- a/examples/dll-user/README.md +++ b/examples/dll-user/README.md @@ -14,11 +14,11 @@ module.exports = { plugins: [ new webpack.DllReferencePlugin({ context: path.join(__dirname, "..", "dll"), - manifest: require("../dll/js/alpha-manifest.json") // eslint-disable-line + manifest: require("../dll/dist/alpha-manifest.json") // eslint-disable-line }), new webpack.DllReferencePlugin({ scope: "beta", - manifest: require("../dll/js/beta-manifest.json"), // eslint-disable-line + manifest: require("../dll/dist/beta-manifest.json"), // eslint-disable-line extensions: [".js", ".jsx"] }) ] @@ -38,7 +38,7 @@ console.log(require("beta/c")); console.log(require("module")); ``` -# js/output.js +# dist/output.js
/******/ (function(modules) { /* webpackBootstrap */ }) @@ -107,7 +107,7 @@ console.log(require("module")); /******/ __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); }; /******/ /******/ // __webpack_public_path__ -/******/ __webpack_require__.p = "js/"; +/******/ __webpack_require__.p = "dist/"; /******/ /******/ // Load entry module and return exports /******/ return __webpack_require__(__webpack_require__.s = 0); @@ -139,82 +139,82 @@ console.log(__webpack_require__(/*! module */ 8)); /***/ }), /* 1 */ /*!**************************************************************************!*\ - !*** delegated ./alpha.js from dll-reference alpha_a716524c34bed97b283e ***! + !*** delegated ./alpha.js from dll-reference alpha_100e8e712194d1301cec ***! \**************************************************************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { -module.exports = (__webpack_require__(/*! dll-reference alpha_a716524c34bed97b283e */ 2))(1); +module.exports = (__webpack_require__(/*! dll-reference alpha_100e8e712194d1301cec */ 2))(1); /***/ }), /* 2 */ /*!*********************************************!*\ - !*** external "alpha_a716524c34bed97b283e" ***! + !*** external "alpha_100e8e712194d1301cec" ***! \*********************************************/ /*! no static exports found */ /***/ (function(module, exports) { -module.exports = alpha_a716524c34bed97b283e; +module.exports = alpha_100e8e712194d1301cec; /***/ }), /* 3 */ /*!**********************************************************************!*\ - !*** delegated ./a.js from dll-reference alpha_a716524c34bed97b283e ***! + !*** delegated ./a.js from dll-reference alpha_100e8e712194d1301cec ***! \**********************************************************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { -module.exports = (__webpack_require__(/*! dll-reference alpha_a716524c34bed97b283e */ 2))(2); +module.exports = (__webpack_require__(/*! dll-reference alpha_100e8e712194d1301cec */ 2))(2); /***/ }), /* 4 */ /*!************************************************************************!*\ - !*** delegated ./beta.js from dll-reference beta_a716524c34bed97b283e ***! + !*** delegated ./beta.js from dll-reference beta_100e8e712194d1301cec ***! \************************************************************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { -module.exports = (__webpack_require__(/*! dll-reference beta_a716524c34bed97b283e */ 5))(5); +module.exports = (__webpack_require__(/*! dll-reference beta_100e8e712194d1301cec */ 5))(5); /***/ }), /* 5 */ /*!********************************************!*\ - !*** external "beta_a716524c34bed97b283e" ***! + !*** external "beta_100e8e712194d1301cec" ***! \********************************************/ /*! no static exports found */ /***/ (function(module, exports) { -module.exports = beta_a716524c34bed97b283e; +module.exports = beta_100e8e712194d1301cec; /***/ }), /* 6 */ /*!*********************************************************************!*\ - !*** delegated ./b.js from dll-reference beta_a716524c34bed97b283e ***! + !*** delegated ./b.js from dll-reference beta_100e8e712194d1301cec ***! \*********************************************************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { -module.exports = (__webpack_require__(/*! dll-reference beta_a716524c34bed97b283e */ 5))(6); +module.exports = (__webpack_require__(/*! dll-reference beta_100e8e712194d1301cec */ 5))(6); /***/ }), /* 7 */ /*!**********************************************************************!*\ - !*** delegated ./c.jsx from dll-reference beta_a716524c34bed97b283e ***! + !*** delegated ./c.jsx from dll-reference beta_100e8e712194d1301cec ***! \**********************************************************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { -module.exports = (__webpack_require__(/*! dll-reference beta_a716524c34bed97b283e */ 5))(7); +module.exports = (__webpack_require__(/*! dll-reference beta_100e8e712194d1301cec */ 5))(7); /***/ }), /* 8 */ /*!*****************************************************************************************!*\ - !*** delegated ../node_modules/module.js from dll-reference alpha_a716524c34bed97b283e ***! + !*** delegated ../node_modules/module.js from dll-reference alpha_100e8e712194d1301cec ***! \*****************************************************************************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { -module.exports = (__webpack_require__(/*! dll-reference alpha_a716524c34bed97b283e */ 2))(3); +module.exports = (__webpack_require__(/*! dll-reference alpha_100e8e712194d1301cec */ 2))(3); /***/ }) /******/ ]); @@ -228,31 +228,31 @@ module.exports = (__webpack_require__(/*! dll-reference alpha_a716524c34bed97b28 Hash: 0a1b2c3d4e5f6a7b8c9d Version: webpack next Asset Size Chunks Chunk Names -output.js 6.17 KiB 0 [emitted] main +output.js 6.18 KiB 0 [emitted] main Entrypoint main = output.js chunk {0} output.js (main) 549 bytes [entry] [rendered] > main [0] ./example.js [0] ./example.js 213 bytes {0} [built] single entry .\example.js main - [1] delegated ./alpha.js from dll-reference alpha_a716524c34bed97b283e 42 bytes {0} [built] + [1] delegated ./alpha.js from dll-reference alpha_100e8e712194d1301cec 42 bytes {0} [built] cjs require ../dll/alpha [0] ./example.js 1:12-35 - [2] external "alpha_a716524c34bed97b283e" 42 bytes {0} [built] - delegated source dll-reference alpha_a716524c34bed97b283e [1] delegated ./alpha.js from dll-reference alpha_a716524c34bed97b283e - delegated source dll-reference alpha_a716524c34bed97b283e [3] delegated ./a.js from dll-reference alpha_a716524c34bed97b283e - delegated source dll-reference alpha_a716524c34bed97b283e [8] delegated ../node_modules/module.js from dll-reference alpha_a716524c34bed97b283e - [3] delegated ./a.js from dll-reference alpha_a716524c34bed97b283e 42 bytes {0} [built] + [2] external "alpha_100e8e712194d1301cec" 42 bytes {0} [built] + delegated source dll-reference alpha_100e8e712194d1301cec [1] delegated ./alpha.js from dll-reference alpha_100e8e712194d1301cec + delegated source dll-reference alpha_100e8e712194d1301cec [3] delegated ./a.js from dll-reference alpha_100e8e712194d1301cec + delegated source dll-reference alpha_100e8e712194d1301cec [8] delegated ../node_modules/module.js from dll-reference alpha_100e8e712194d1301cec + [3] delegated ./a.js from dll-reference alpha_100e8e712194d1301cec 42 bytes {0} [built] cjs require ../dll/a [0] ./example.js 2:12-31 - [4] delegated ./beta.js from dll-reference beta_a716524c34bed97b283e 42 bytes {0} [built] + [4] delegated ./beta.js from dll-reference beta_100e8e712194d1301cec 42 bytes {0} [built] cjs require beta/beta [0] ./example.js 4:12-32 - [5] external "beta_a716524c34bed97b283e" 42 bytes {0} [built] - delegated source dll-reference beta_a716524c34bed97b283e [4] delegated ./beta.js from dll-reference beta_a716524c34bed97b283e - delegated source dll-reference beta_a716524c34bed97b283e [6] delegated ./b.js from dll-reference beta_a716524c34bed97b283e - delegated source dll-reference beta_a716524c34bed97b283e [7] delegated ./c.jsx from dll-reference beta_a716524c34bed97b283e - [6] delegated ./b.js from dll-reference beta_a716524c34bed97b283e 42 bytes {0} [built] + [5] external "beta_100e8e712194d1301cec" 42 bytes {0} [built] + delegated source dll-reference beta_100e8e712194d1301cec [4] delegated ./beta.js from dll-reference beta_100e8e712194d1301cec + delegated source dll-reference beta_100e8e712194d1301cec [6] delegated ./b.js from dll-reference beta_100e8e712194d1301cec + delegated source dll-reference beta_100e8e712194d1301cec [7] delegated ./c.jsx from dll-reference beta_100e8e712194d1301cec + [6] delegated ./b.js from dll-reference beta_100e8e712194d1301cec 42 bytes {0} [built] cjs require beta/b [0] ./example.js 5:12-29 - [7] delegated ./c.jsx from dll-reference beta_a716524c34bed97b283e 42 bytes {0} [built] + [7] delegated ./c.jsx from dll-reference beta_100e8e712194d1301cec 42 bytes {0} [built] cjs require beta/c [0] ./example.js 6:12-29 - [8] delegated ../node_modules/module.js from dll-reference alpha_a716524c34bed97b283e 42 bytes {0} [built] + [8] delegated ../node_modules/module.js from dll-reference alpha_100e8e712194d1301cec 42 bytes {0} [built] cjs require module [0] ./example.js 8:12-29 ``` @@ -262,29 +262,29 @@ chunk {0} output.js (main) 549 bytes [entry] [rendered] Hash: 0a1b2c3d4e5f6a7b8c9d Version: webpack next Asset Size Chunks Chunk Names -output.js 970 bytes 0 [emitted] main +output.js 972 bytes 0 [emitted] main Entrypoint main = output.js chunk {0} output.js (main) 549 bytes [entry] [rendered] > main [8] ./example.js - [0] external "beta_a716524c34bed97b283e" 42 bytes {0} [built] - delegated source dll-reference beta_a716524c34bed97b283e [3] delegated ./c.jsx from dll-reference beta_a716524c34bed97b283e - delegated source dll-reference beta_a716524c34bed97b283e [4] delegated ./b.js from dll-reference beta_a716524c34bed97b283e - delegated source dll-reference beta_a716524c34bed97b283e [5] delegated ./beta.js from dll-reference beta_a716524c34bed97b283e - [1] external "alpha_a716524c34bed97b283e" 42 bytes {0} [built] - delegated source dll-reference alpha_a716524c34bed97b283e [2] delegated ../node_modules/module.js from dll-reference alpha_a716524c34bed97b283e - delegated source dll-reference alpha_a716524c34bed97b283e [6] delegated ./a.js from dll-reference alpha_a716524c34bed97b283e - delegated source dll-reference alpha_a716524c34bed97b283e [7] delegated ./alpha.js from dll-reference alpha_a716524c34bed97b283e - [2] delegated ../node_modules/module.js from dll-reference alpha_a716524c34bed97b283e 42 bytes {0} [built] + [0] external "beta_100e8e712194d1301cec" 42 bytes {0} [built] + delegated source dll-reference beta_100e8e712194d1301cec [3] delegated ./c.jsx from dll-reference beta_100e8e712194d1301cec + delegated source dll-reference beta_100e8e712194d1301cec [4] delegated ./b.js from dll-reference beta_100e8e712194d1301cec + delegated source dll-reference beta_100e8e712194d1301cec [5] delegated ./beta.js from dll-reference beta_100e8e712194d1301cec + [1] external "alpha_100e8e712194d1301cec" 42 bytes {0} [built] + delegated source dll-reference alpha_100e8e712194d1301cec [2] delegated ../node_modules/module.js from dll-reference alpha_100e8e712194d1301cec + delegated source dll-reference alpha_100e8e712194d1301cec [6] delegated ./a.js from dll-reference alpha_100e8e712194d1301cec + delegated source dll-reference alpha_100e8e712194d1301cec [7] delegated ./alpha.js from dll-reference alpha_100e8e712194d1301cec + [2] delegated ../node_modules/module.js from dll-reference alpha_100e8e712194d1301cec 42 bytes {0} [built] cjs require module [8] ./example.js 8:12-29 - [3] delegated ./c.jsx from dll-reference beta_a716524c34bed97b283e 42 bytes {0} [built] + [3] delegated ./c.jsx from dll-reference beta_100e8e712194d1301cec 42 bytes {0} [built] cjs require beta/c [8] ./example.js 6:12-29 - [4] delegated ./b.js from dll-reference beta_a716524c34bed97b283e 42 bytes {0} [built] + [4] delegated ./b.js from dll-reference beta_100e8e712194d1301cec 42 bytes {0} [built] cjs require beta/b [8] ./example.js 5:12-29 - [5] delegated ./beta.js from dll-reference beta_a716524c34bed97b283e 42 bytes {0} [built] + [5] delegated ./beta.js from dll-reference beta_100e8e712194d1301cec 42 bytes {0} [built] cjs require beta/beta [8] ./example.js 4:12-32 - [6] delegated ./a.js from dll-reference alpha_a716524c34bed97b283e 42 bytes {0} [built] + [6] delegated ./a.js from dll-reference alpha_100e8e712194d1301cec 42 bytes {0} [built] cjs require ../dll/a [8] ./example.js 2:12-31 - [7] delegated ./alpha.js from dll-reference alpha_a716524c34bed97b283e 42 bytes {0} [built] + [7] delegated ./alpha.js from dll-reference alpha_100e8e712194d1301cec 42 bytes {0} [built] cjs require ../dll/alpha [8] ./example.js 1:12-35 [8] ./example.js 213 bytes {0} [built] single entry .\example.js main diff --git a/examples/dll-user/template.md b/examples/dll-user/template.md index 30d9dca0e..c6df8d2b3 100644 --- a/examples/dll-user/template.md +++ b/examples/dll-user/template.md @@ -16,10 +16,10 @@ This is the _user_ bundle, which uses the manifest from [dll-reference example]( {{example.js}} ``` -# js/output.js +# dist/output.js ``` javascript -{{js/output.js}} +{{dist/output.js}} ``` # Info diff --git a/examples/dll-user/webpack.config.js b/examples/dll-user/webpack.config.js index b62ac9a34..7d058b6d5 100644 --- a/examples/dll-user/webpack.config.js +++ b/examples/dll-user/webpack.config.js @@ -5,11 +5,11 @@ module.exports = { plugins: [ new webpack.DllReferencePlugin({ context: path.join(__dirname, "..", "dll"), - manifest: require("../dll/js/alpha-manifest.json") // eslint-disable-line + manifest: require("../dll/dist/alpha-manifest.json") // eslint-disable-line }), new webpack.DllReferencePlugin({ scope: "beta", - manifest: require("../dll/js/beta-manifest.json"), // eslint-disable-line + manifest: require("../dll/dist/beta-manifest.json"), // eslint-disable-line extensions: [".js", ".jsx"] }) ] diff --git a/examples/dll/README.md b/examples/dll/README.md index a83b07eb2..45f7e91d5 100644 --- a/examples/dll/README.md +++ b/examples/dll/README.md @@ -20,23 +20,23 @@ module.exports = { beta: ["./beta", "./b", "./c"] }, output: { - path: path.join(__dirname, "js"), + path: path.join(__dirname, "dist"), filename: "MyDll.[name].js", library: "[name]_[hash]" }, plugins: [ new webpack.DllPlugin({ - path: path.join(__dirname, "js", "[name]-manifest.json"), + path: path.join(__dirname, "dist", "[name]-manifest.json"), name: "[name]_[hash]" }) ] }; ``` -# js/MyDll.alpha.js +# dist/MyDll.alpha.js ``` javascript -var alpha_a716524c34bed97b283e = +var alpha_100e8e712194d1301cec = ```
/******/ (function(modules) { /* webpackBootstrap */ }) @@ -105,7 +105,7 @@ var alpha_a716524c34bed97b283e = /******/ __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); }; /******/ /******/ // __webpack_public_path__ -/******/ __webpack_require__.p = "js/"; +/******/ __webpack_require__.p = "dist/"; /******/ /******/ // Load entry module and return exports /******/ return __webpack_require__(__webpack_require__.s = 0); @@ -164,10 +164,10 @@ module.exports = "module"; /******/ ]); ``` -# js/alpha-manifest.json +# dist/alpha-manifest.json ``` javascript -{"name":"alpha_a716524c34bed97b283e","content":{"./alpha.js":{"id":1,"buildMeta":{"providedExports":true}},"./a.js":{"id":2,"buildMeta":{"providedExports":true}},"../node_modules/module.js":{"id":3,"buildMeta":{"providedExports":true}}}} +{"name":"alpha_100e8e712194d1301cec","content":{"./alpha.js":{"id":1,"buildMeta":{"providedExports":true}},"./a.js":{"id":2,"buildMeta":{"providedExports":true}},"../node_modules/module.js":{"id":3,"buildMeta":{"providedExports":true}}}} ``` # Info @@ -216,8 +216,8 @@ chunk {1} MyDll.beta.js (beta) 80 bytes [entry] [rendered] Hash: 0a1b2c3d4e5f6a7b8c9d Version: webpack next Asset Size Chunks Chunk Names - MyDll.beta.js 689 bytes 0 [emitted] beta -MyDll.alpha.js 698 bytes 1 [emitted] alpha + MyDll.beta.js 691 bytes 0 [emitted] beta +MyDll.alpha.js 700 bytes 1 [emitted] alpha Entrypoint alpha = MyDll.alpha.js Entrypoint beta = MyDll.beta.js chunk {0} MyDll.beta.js (beta) 80 bytes [entry] [rendered] diff --git a/examples/dll/template.md b/examples/dll/template.md index 421698685..f51914ecf 100644 --- a/examples/dll/template.md +++ b/examples/dll/template.md @@ -11,16 +11,16 @@ This is the _reference_ bundle (with the manifests) for [dll user example](https {{webpack.config.js}} ``` -# js/MyDll.alpha.js +# dist/MyDll.alpha.js ``` javascript -{{js/MyDll.alpha.js}} +{{dist/MyDll.alpha.js}} ``` -# js/alpha-manifest.json +# dist/alpha-manifest.json ``` javascript -{{js/alpha-manifest.json}} +{{dist/alpha-manifest.json}} ``` # Info diff --git a/examples/dll/webpack.config.js b/examples/dll/webpack.config.js index f5fcac419..7d96a1390 100644 --- a/examples/dll/webpack.config.js +++ b/examples/dll/webpack.config.js @@ -10,13 +10,13 @@ module.exports = { beta: ["./beta", "./b", "./c"] }, output: { - path: path.join(__dirname, "js"), + path: path.join(__dirname, "dist"), filename: "MyDll.[name].js", library: "[name]_[hash]" }, plugins: [ new webpack.DllPlugin({ - path: path.join(__dirname, "js", "[name]-manifest.json"), + path: path.join(__dirname, "dist", "[name]-manifest.json"), name: "[name]_[hash]" }) ] diff --git a/examples/explicit-vendor-chunk/README.md b/examples/explicit-vendor-chunk/README.md index 3374b413d..bdc932f4b 100644 --- a/examples/explicit-vendor-chunk/README.md +++ b/examples/explicit-vendor-chunk/README.md @@ -9,7 +9,7 @@ module.exports = [ // mode: "development || "production", entry: ["./vendor", "./vendor2"], output: { - path: path.resolve(__dirname, "js"), + path: path.resolve(__dirname, "dist"), filename: "vendor.js", library: "vendor_[hash]" }, @@ -30,7 +30,7 @@ module.exports = [ pageC: "./pageC" }, output: { - path: path.join(__dirname, "js"), + path: path.join(__dirname, "dist"), filename: "[name].js" }, plugins: [ @@ -42,10 +42,10 @@ module.exports = [ ]; ``` -# js/vendor.js +# dist/vendor.js ``` javascript -var vendor_29cbd7a62aad73543161 = +var vendor_44a43fa9f51c57e4a162 = ```
/******/ (function(modules) { /* webpackBootstrap */ }) @@ -114,7 +114,7 @@ var vendor_29cbd7a62aad73543161 = /******/ __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); }; /******/ /******/ // __webpack_public_path__ -/******/ __webpack_require__.p = "js/"; +/******/ __webpack_require__.p = "dist/"; /******/ /******/ // Load entry module and return exports /******/ return __webpack_require__(__webpack_require__.s = 0); @@ -162,7 +162,7 @@ module.exports = "Vendor2"; /******/ ]); ``` -# js/pageA.js +# dist/pageA.js ``` javascript /******/ (function(modules) { // webpackBootstrap @@ -229,7 +229,7 @@ module.exports = "Vendor2"; /******/ __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); }; /******/ /******/ // __webpack_public_path__ -/******/ __webpack_require__.p = "js/"; +/******/ __webpack_require__.p = "dist/"; /******/ /******/ // Load entry module and return exports /******/ return __webpack_require__(__webpack_require__.s = 0); @@ -249,22 +249,22 @@ module.exports = "pageA"; /***/ }), /* 1 */ /*!****************************************************************************!*\ - !*** delegated ./vendor.js from dll-reference vendor_29cbd7a62aad73543161 ***! + !*** delegated ./vendor.js from dll-reference vendor_44a43fa9f51c57e4a162 ***! \****************************************************************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { -module.exports = (__webpack_require__(/*! dll-reference vendor_29cbd7a62aad73543161 */ 2))(1); +module.exports = (__webpack_require__(/*! dll-reference vendor_44a43fa9f51c57e4a162 */ 2))(1); /***/ }), /* 2 */ /*!**********************************************!*\ - !*** external "vendor_29cbd7a62aad73543161" ***! + !*** external "vendor_44a43fa9f51c57e4a162" ***! \**********************************************/ /*! no static exports found */ /***/ (function(module, exports) { -module.exports = vendor_29cbd7a62aad73543161; +module.exports = vendor_44a43fa9f51c57e4a162; /***/ }) /******/ ]); @@ -306,19 +306,19 @@ Child app: > pageA [0] ./pageA.js [0] ./pageA.js 60 bytes {0} [built] single entry ./pageA pageA - [1] delegated ./vendor.js from dll-reference vendor_29cbd7a62aad73543161 42 bytes {0} [built] + [1] delegated ./vendor.js from dll-reference vendor_44a43fa9f51c57e4a162 42 bytes {0} [built] cjs require ./vendor [0] ./pageA.js 1:12-31 - [2] external "vendor_29cbd7a62aad73543161" 42 bytes {0} {1} [built] - delegated source dll-reference vendor_29cbd7a62aad73543161 [1] delegated ./vendor.js from dll-reference vendor_29cbd7a62aad73543161 - delegated source dll-reference vendor_29cbd7a62aad73543161 [4] delegated ./vendor2.js from dll-reference vendor_29cbd7a62aad73543161 + [2] external "vendor_44a43fa9f51c57e4a162" 42 bytes {0} {1} [built] + delegated source dll-reference vendor_44a43fa9f51c57e4a162 [1] delegated ./vendor.js from dll-reference vendor_44a43fa9f51c57e4a162 + delegated source dll-reference vendor_44a43fa9f51c57e4a162 [4] delegated ./vendor2.js from dll-reference vendor_44a43fa9f51c57e4a162 chunk {1} pageB.js (pageB) 145 bytes [entry] [rendered] > pageB [3] ./pageB.js - [2] external "vendor_29cbd7a62aad73543161" 42 bytes {0} {1} [built] - delegated source dll-reference vendor_29cbd7a62aad73543161 [1] delegated ./vendor.js from dll-reference vendor_29cbd7a62aad73543161 - delegated source dll-reference vendor_29cbd7a62aad73543161 [4] delegated ./vendor2.js from dll-reference vendor_29cbd7a62aad73543161 + [2] external "vendor_44a43fa9f51c57e4a162" 42 bytes {0} {1} [built] + delegated source dll-reference vendor_44a43fa9f51c57e4a162 [1] delegated ./vendor.js from dll-reference vendor_44a43fa9f51c57e4a162 + delegated source dll-reference vendor_44a43fa9f51c57e4a162 [4] delegated ./vendor2.js from dll-reference vendor_44a43fa9f51c57e4a162 [3] ./pageB.js 61 bytes {1} [built] single entry ./pageB pageB - [4] delegated ./vendor2.js from dll-reference vendor_29cbd7a62aad73543161 42 bytes {1} [built] + [4] delegated ./vendor2.js from dll-reference vendor_44a43fa9f51c57e4a162 42 bytes {1} [built] cjs require ./vendor2 [3] ./pageB.js 1:12-32 chunk {2} pageC.js (pageC) 25 bytes [entry] [rendered] > pageC [5] ./pageC.js @@ -334,7 +334,7 @@ Version: webpack next Child vendor: Hash: 0a1b2c3d4e5f6a7b8c9d Asset Size Chunks Chunk Names - vendor.js 668 bytes 0 [emitted] main + vendor.js 670 bytes 0 [emitted] main Entrypoint main = vendor.js chunk {0} vendor.js (main) 65 bytes [entry] [rendered] > main [2] dll main @@ -350,9 +350,9 @@ Child vendor: Child app: Hash: 0a1b2c3d4e5f6a7b8c9d Asset Size Chunks Chunk Names - pageC.js 566 bytes 0 [emitted] pageC - pageB.js 674 bytes 1 [emitted] pageB - pageA.js 676 bytes 2 [emitted] pageA + pageC.js 568 bytes 0 [emitted] pageC + pageB.js 676 bytes 1 [emitted] pageB + pageA.js 678 bytes 2 [emitted] pageA Entrypoint pageA = pageA.js Entrypoint pageB = pageB.js Entrypoint pageC = pageC.js @@ -362,19 +362,19 @@ Child app: single entry ./pageC pageC chunk {1} pageB.js (pageB) 145 bytes [entry] [rendered] > pageB [3] ./pageB.js - [0] external "vendor_6b1d14c4fe9298d3969e" 42 bytes {1} {2} [built] - delegated source dll-reference vendor_6b1d14c4fe9298d3969e [2] delegated ./vendor2.js from dll-reference vendor_6b1d14c4fe9298d3969e - delegated source dll-reference vendor_6b1d14c4fe9298d3969e [4] delegated ./vendor.js from dll-reference vendor_6b1d14c4fe9298d3969e - [2] delegated ./vendor2.js from dll-reference vendor_6b1d14c4fe9298d3969e 42 bytes {1} [built] + [0] external "vendor_4931cea4c9b3fadeb2db" 42 bytes {1} {2} [built] + delegated source dll-reference vendor_4931cea4c9b3fadeb2db [2] delegated ./vendor2.js from dll-reference vendor_4931cea4c9b3fadeb2db + delegated source dll-reference vendor_4931cea4c9b3fadeb2db [4] delegated ./vendor.js from dll-reference vendor_4931cea4c9b3fadeb2db + [2] delegated ./vendor2.js from dll-reference vendor_4931cea4c9b3fadeb2db 42 bytes {1} [built] cjs require ./vendor2 [3] ./pageB.js 1:12-32 [3] ./pageB.js 61 bytes {1} [built] single entry ./pageB pageB chunk {2} pageA.js (pageA) 144 bytes [entry] [rendered] > pageA [5] ./pageA.js - [0] external "vendor_6b1d14c4fe9298d3969e" 42 bytes {1} {2} [built] - delegated source dll-reference vendor_6b1d14c4fe9298d3969e [2] delegated ./vendor2.js from dll-reference vendor_6b1d14c4fe9298d3969e - delegated source dll-reference vendor_6b1d14c4fe9298d3969e [4] delegated ./vendor.js from dll-reference vendor_6b1d14c4fe9298d3969e - [4] delegated ./vendor.js from dll-reference vendor_6b1d14c4fe9298d3969e 42 bytes {2} [built] + [0] external "vendor_4931cea4c9b3fadeb2db" 42 bytes {1} {2} [built] + delegated source dll-reference vendor_4931cea4c9b3fadeb2db [2] delegated ./vendor2.js from dll-reference vendor_4931cea4c9b3fadeb2db + delegated source dll-reference vendor_4931cea4c9b3fadeb2db [4] delegated ./vendor.js from dll-reference vendor_4931cea4c9b3fadeb2db + [4] delegated ./vendor.js from dll-reference vendor_4931cea4c9b3fadeb2db 42 bytes {2} [built] cjs require ./vendor [5] ./pageA.js 1:12-31 [5] ./pageA.js 60 bytes {2} [built] single entry ./pageA pageA diff --git a/examples/explicit-vendor-chunk/template.md b/examples/explicit-vendor-chunk/template.md index fdc57a01a..e683b3da4 100644 --- a/examples/explicit-vendor-chunk/template.md +++ b/examples/explicit-vendor-chunk/template.md @@ -4,16 +4,16 @@ {{webpack.config.js}} ``` -# js/vendor.js +# dist/vendor.js ``` javascript -{{js/vendor.js}} +{{dist/vendor.js}} ``` -# js/pageA.js +# dist/pageA.js ``` javascript -{{js/pageA.js}} +{{dist/pageA.js}} ``` # Info diff --git a/examples/explicit-vendor-chunk/webpack.config.js b/examples/explicit-vendor-chunk/webpack.config.js index d5f604214..6e1ae33ca 100644 --- a/examples/explicit-vendor-chunk/webpack.config.js +++ b/examples/explicit-vendor-chunk/webpack.config.js @@ -6,7 +6,7 @@ module.exports = [ // mode: "development || "production", entry: ["./vendor", "./vendor2"], output: { - path: path.resolve(__dirname, "js"), + path: path.resolve(__dirname, "dist"), filename: "vendor.js", library: "vendor_[hash]" }, @@ -27,7 +27,7 @@ module.exports = [ pageC: "./pageC" }, output: { - path: path.join(__dirname, "js"), + path: path.join(__dirname, "dist"), filename: "[name].js" }, plugins: [ diff --git a/examples/externals/README.md b/examples/externals/README.md index 994ee186d..129a0cc46 100644 --- a/examples/externals/README.md +++ b/examples/externals/README.md @@ -46,7 +46,7 @@ module.exports = { }; ``` -# js/output.js +# dist/output.js ``` javascript (function webpackUniversalModuleDefinition(root, factory) { @@ -127,7 +127,7 @@ return /******/ (function(modules) { // webpackBootstrap /******/ __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); }; /******/ /******/ // __webpack_public_path__ -/******/ __webpack_require__.p = "js/"; +/******/ __webpack_require__.p = "dist/"; /******/ /******/ // Load entry module and return exports /******/ return __webpack_require__(__webpack_require__.s = 0); diff --git a/examples/externals/template.md b/examples/externals/template.md index f6cbbb675..d79321a99 100644 --- a/examples/externals/template.md +++ b/examples/externals/template.md @@ -27,10 +27,10 @@ In the complex case we specify different values for each environment: {{webpack.config.js}} ``` -# js/output.js +# dist/output.js ``` javascript -{{js/output.js}} +{{dist/output.js}} ``` # Info diff --git a/examples/extra-async-chunk-advanced/README.md b/examples/extra-async-chunk-advanced/README.md index 3570be017..6b5599911 100644 --- a/examples/extra-async-chunk-advanced/README.md +++ b/examples/extra-async-chunk-advanced/README.md @@ -48,7 +48,7 @@ module.exports = { }; ``` -# js/output.js +# dist/output.js
/******/ (function(modules) { /* webpackBootstrap */ }) @@ -207,7 +207,7 @@ module.exports = { /******/ __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); }; /******/ /******/ // __webpack_public_path__ -/******/ __webpack_require__.p = "js/"; +/******/ __webpack_require__.p = "dist/"; /******/ /******/ // on error function for async loading /******/ __webpack_require__.oe = function(err) { console.error(err); throw err; }; @@ -334,7 +334,7 @@ Version: webpack next 4.output.js 91 bytes 4 [emitted] 5.output.js 91 bytes 5 [emitted] 6.output.js 91 bytes 6 [emitted] - output.js 2.01 KiB 7 [emitted] main + output.js 2.02 KiB 7 [emitted] main Entrypoint main = output.js chunk {0} 0.output.js (async2) 21 bytes {2} {7} [rendered] > async commons duplicate [2] ./example.js 1:0-52 diff --git a/examples/extra-async-chunk-advanced/template.md b/examples/extra-async-chunk-advanced/template.md index 2dc6cbd4c..89d6b1b9e 100644 --- a/examples/extra-async-chunk-advanced/template.md +++ b/examples/extra-async-chunk-advanced/template.md @@ -12,10 +12,10 @@ {{webpack.config.js}} ``` -# js/output.js +# dist/output.js ``` javascript -{{js/output.js}} +{{dist/output.js}} ``` # Info diff --git a/examples/extra-async-chunk/README.md b/examples/extra-async-chunk/README.md index fa59a6da9..328063cec 100644 --- a/examples/extra-async-chunk/README.md +++ b/examples/extra-async-chunk/README.md @@ -68,7 +68,7 @@ module.exports = { }; ``` -# js/output.js +# dist/output.js
/******/ (function(modules) { /* webpackBootstrap */ }) @@ -227,7 +227,7 @@ module.exports = { /******/ __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); }; /******/ /******/ // __webpack_public_path__ -/******/ __webpack_require__.p = "js/"; +/******/ __webpack_require__.p = "dist/"; /******/ /******/ // on error function for async loading /******/ __webpack_require__.oe = function(err) { console.error(err); throw err; }; @@ -271,7 +271,7 @@ Promise.all(/*! require.ensure */[__webpack_require__.e(0), __webpack_require__. /******/ }); ``` -# js/0.output.js +# dist/0.output.js ``` javascript (window["webpackJsonp"] = window["webpackJsonp"] || []).push([[0],[ @@ -298,7 +298,7 @@ module.exports = "a"; ]]); ``` -# js/1.output.js +# dist/1.output.js ``` javascript (window["webpackJsonp"] = window["webpackJsonp"] || []).push([[1],{ @@ -317,7 +317,7 @@ module.exports = "d"; }]); ``` -# js/2.output.js +# dist/2.output.js ``` javascript (window["webpackJsonp"] = window["webpackJsonp"] || []).push([[2],{ diff --git a/examples/extra-async-chunk/template.md b/examples/extra-async-chunk/template.md index 7dda0271f..5f578607b 100644 --- a/examples/extra-async-chunk/template.md +++ b/examples/extra-async-chunk/template.md @@ -44,28 +44,28 @@ Pretty useful for a router in a SPA. {{webpack.config.js}} ``` -# js/output.js +# dist/output.js ``` javascript -{{js/output.js}} +{{dist/output.js}} ``` -# js/0.output.js +# dist/0.output.js ``` javascript -{{js/0.output.js}} +{{dist/0.output.js}} ``` -# js/1.output.js +# dist/1.output.js ``` javascript -{{js/1.output.js}} +{{dist/1.output.js}} ``` -# js/2.output.js +# dist/2.output.js ``` javascript -{{js/2.output.js}} +{{dist/2.output.js}} ``` # Info diff --git a/examples/harmony-interop/README.md b/examples/harmony-interop/README.md index 888b4c595..f98b7b26b 100644 --- a/examples/harmony-interop/README.md +++ b/examples/harmony-interop/README.md @@ -64,7 +64,7 @@ export default "default"; export var named = "named"; ``` -# js/output.js +# dist/output.js
/******/ (function(modules) { /* webpackBootstrap */ }) @@ -133,7 +133,7 @@ export var named = "named"; /******/ __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); }; /******/ /******/ // __webpack_public_path__ -/******/ __webpack_require__.p = "js/"; +/******/ __webpack_require__.p = "dist/"; /******/ /******/ // Load entry module and return exports /******/ return __webpack_require__(__webpack_require__.s = 0); @@ -293,7 +293,7 @@ chunk {0} output.js (main) 1.17 KiB [entry] [rendered] Hash: 0a1b2c3d4e5f6a7b8c9d Version: webpack next Asset Size Chunks Chunk Names -output.js 991 bytes 0 [emitted] main +output.js 993 bytes 0 [emitted] main Entrypoint main = output.js chunk {0} output.js (main) 1.17 KiB [entry] [rendered] > main [4] ./example.js diff --git a/examples/harmony-interop/template.md b/examples/harmony-interop/template.md index 2a495b790..ca1a7155f 100644 --- a/examples/harmony-interop/template.md +++ b/examples/harmony-interop/template.md @@ -29,10 +29,10 @@ {{harmony.js}} ``` -# js/output.js +# dist/output.js ``` javascript -{{js/output.js}} +{{dist/output.js}} ``` # Info diff --git a/examples/harmony-library/README.md b/examples/harmony-library/README.md index ea99c05e9..6cf248fc9 100644 --- a/examples/harmony-library/README.md +++ b/examples/harmony-library/README.md @@ -6,7 +6,7 @@ module.exports = { // mode: "development || "production", entry: "./example", output: { - path: path.join(__dirname, "js"), + path: path.join(__dirname, "dist"), filename: "MyLibrary.umd.js", library: "MyLibrary", libraryTarget: "umd" @@ -14,7 +14,7 @@ module.exports = { }; ``` -# js/MyLibrary.umd.js +# dist/MyLibrary.umd.js ``` javascript (function webpackUniversalModuleDefinition(root, factory) { @@ -95,7 +95,7 @@ return /******/ (function(modules) { // webpackBootstrap /******/ __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); }; /******/ /******/ // __webpack_public_path__ -/******/ __webpack_require__.p = "js/"; +/******/ __webpack_require__.p = "dist/"; /******/ /******/ // Load entry module and return exports /******/ return __webpack_require__(__webpack_require__.s = 0); @@ -153,7 +153,7 @@ chunk {0} MyLibrary.umd.js (main) 97 bytes [entry] [rendered] Hash: 0a1b2c3d4e5f6a7b8c9d Version: webpack next Asset Size Chunks Chunk Names -MyLibrary.umd.js 924 bytes 0 [emitted] main +MyLibrary.umd.js 926 bytes 0 [emitted] main Entrypoint main = MyLibrary.umd.js chunk {0} MyLibrary.umd.js (main) 97 bytes [entry] [rendered] > main [0] ./example.js diff --git a/examples/harmony-library/template.md b/examples/harmony-library/template.md index 95c8f4c7c..4ce639261 100644 --- a/examples/harmony-library/template.md +++ b/examples/harmony-library/template.md @@ -4,10 +4,10 @@ {{webpack.config.js}} ``` -# js/MyLibrary.umd.js +# dist/MyLibrary.umd.js ``` javascript -{{js/MyLibrary.umd.js}} +{{dist/MyLibrary.umd.js}} ``` # Info diff --git a/examples/harmony-library/webpack.config.js b/examples/harmony-library/webpack.config.js index c4bc79d93..5700c38ed 100644 --- a/examples/harmony-library/webpack.config.js +++ b/examples/harmony-library/webpack.config.js @@ -3,7 +3,7 @@ module.exports = { // mode: "development || "production", entry: "./example", output: { - path: path.join(__dirname, "js"), + path: path.join(__dirname, "dist"), filename: "MyLibrary.umd.js", library: "MyLibrary", libraryTarget: "umd" diff --git a/examples/harmony-unused/README.md b/examples/harmony-unused/README.md index c0557315e..6135ed4cd 100644 --- a/examples/harmony-unused/README.md +++ b/examples/harmony-unused/README.md @@ -47,7 +47,7 @@ export { a, b, c } from "./abc"; export { add as reexportedAdd, multiply as reexportedMultiply } from "./math"; ``` -# js/output.js +# dist/output.js
/******/ (function(modules) { /* webpackBootstrap */ }) @@ -116,7 +116,7 @@ export { add as reexportedAdd, multiply as reexportedMultiply } from "./math"; /******/ __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); }; /******/ /******/ // __webpack_public_path__ -/******/ __webpack_require__.p = "js/"; +/******/ __webpack_require__.p = "dist/"; /******/ /******/ // Load entry module and return exports /******/ return __webpack_require__(__webpack_require__.s = 0); @@ -227,10 +227,10 @@ function c() { console.log("c"); } /******/ ]); ``` -# js/output.js +# dist/output.js ``` javascript -!function(t){function n(e){if(r[e])return r[e].exports;var u=r[e]={i:e,l:!1,exports:{}};return t[e].call(u.exports,u,u.exports,n),u.l=!0,u.exports}var r={};n.m=t,n.c=r,n.d=function(t,r,e){n.o(t,r)||Object.defineProperty(t,r,{configurable:!1,enumerable:!0,get:e})},n.r=function(t){Object.defineProperty(t,"__esModule",{value:!0})},n.n=function(t){var r=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(r,"a",r),r},n.o=function(t,n){return Object.prototype.hasOwnProperty.call(t,n)},n.p="js/",n(n.s=3)}([function(t,n,r){"use strict";function e(){for(var t=0,n=0,r=arguments,e=r.length;n main [0] ./example.js @@ -273,7 +273,7 @@ chunk {0} output.js (main) 726 bytes [entry] [rendered] Hash: 0a1b2c3d4e5f6a7b8c9d Version: webpack next Asset Size Chunks Chunk Names -output.js 969 bytes 0 [emitted] main +output.js 971 bytes 0 [emitted] main Entrypoint main = output.js chunk {0} output.js (main) 726 bytes [entry] [rendered] > main [3] ./example.js diff --git a/examples/harmony-unused/template.md b/examples/harmony-unused/template.md index 4be983b06..f60c1c9e7 100644 --- a/examples/harmony-unused/template.md +++ b/examples/harmony-unused/template.md @@ -24,16 +24,16 @@ In addition to that, `library.js` simulates an entry point to a big library. `li {{library.js}} ``` -# js/output.js +# dist/output.js ``` javascript -{{js/output.js}} +{{dist/output.js}} ``` -# js/output.js +# dist/output.js ``` javascript -{{production:js/output.js}} +{{production:dist/output.js}} ``` # Info diff --git a/examples/harmony/README.md b/examples/harmony/README.md index 7b11546d1..4f2154707 100644 --- a/examples/harmony/README.md +++ b/examples/harmony/README.md @@ -21,7 +21,7 @@ export function increment(val) { }; ``` -# js/output.js +# dist/output.js
/******/ (function(modules) { /* webpackBootstrap */ }) @@ -180,7 +180,7 @@ export function increment(val) { /******/ __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); }; /******/ /******/ // __webpack_public_path__ -/******/ __webpack_require__.p = "js/"; +/******/ __webpack_require__.p = "dist/"; /******/ /******/ // on error function for async loading /******/ __webpack_require__.oe = function(err) { console.error(err); throw err; }; @@ -301,7 +301,7 @@ Hash: 0a1b2c3d4e5f6a7b8c9d Version: webpack next Asset Size Chunks Chunk Names 0.output.js 144 bytes 0 [emitted] - output.js 1.74 KiB 1 [emitted] main + output.js 1.75 KiB 1 [emitted] main Entrypoint main = output.js chunk {0} 0.output.js 25 bytes {1} [rendered] > [] 6:0-24 diff --git a/examples/harmony/template.md b/examples/harmony/template.md index 62fa9c057..ed2dd05ac 100644 --- a/examples/harmony/template.md +++ b/examples/harmony/template.md @@ -11,10 +11,10 @@ {{increment.js}} ``` -# js/output.js +# dist/output.js ``` javascript -{{js/output.js}} +{{dist/output.js}} ``` # Info diff --git a/examples/http2-aggressive-splitting/README.md b/examples/http2-aggressive-splitting/README.md index b565df010..eae836def 100644 --- a/examples/http2-aggressive-splitting/README.md +++ b/examples/http2-aggressive-splitting/README.md @@ -24,7 +24,7 @@ module.exports = { cache: true, // better performance for the AggressiveSplittingPlugin entry: "./example", output: { - path: path.join(__dirname, "js"), + path: path.join(__dirname, "dist"), filename: "[chunkhash].js", chunkFilename: "[chunkhash].js" }, @@ -37,7 +37,7 @@ module.exports = { "process.env.NODE_ENV": JSON.stringify("production") }) ], - recordsOutputPath: path.join(__dirname, "js", "records.json") + recordsOutputPath: path.join(__dirname, "dist", "records.json") }; ``` @@ -51,7 +51,7 @@ Version: webpack next Asset Size Chunks Chunk Names 1d1f50c6f480a313a283.js 52.9 KiB 7 [emitted] 650a1f5b6bbd5e2a0bcb.js 36.5 KiB 0 [emitted] -85f47c3abb26198f77a8.js 60 KiB 2 [emitted] +4a984680da6e56d39889.js 60 KiB 2 [emitted] de45e35c6080cc33435c.js 31.6 KiB 3 [emitted] b9d30d332886e3897e04.js 56.1 KiB 4 [emitted] 091d7e57346e564d3d09.js 52.4 KiB 5 [emitted] @@ -64,7 +64,7 @@ d12e724ddfa623596d6a.js 54.2 KiB 10 [emitted] 0bb84ee671fc256e158e.js 51.2 KiB 12 [emitted] c8536008639de2173e51.js 58.2 KiB 13 [emitted] 763fbc691b4fe33d506e.js 22 KiB 14 [emitted] -Entrypoint main = 85f47c3abb26198f77a8.js de45e35c6080cc33435c.js 650a1f5b6bbd5e2a0bcb.js +Entrypoint main = 4a984680da6e56d39889.js de45e35c6080cc33435c.js 650a1f5b6bbd5e2a0bcb.js chunk {0} 650a1f5b6bbd5e2a0bcb.js 32.4 KiB [initial] [rendered] > aggressive-splitted main [0] ./example.js [0] ./example.js 44 bytes {0} [built] @@ -72,7 +72,7 @@ chunk {0} 650a1f5b6bbd5e2a0bcb.js 32.4 KiB [initial] [rendered] chunk {1} ad733bf1033fc5a7a830.js 31.4 KiB {0} {2} {3} [rendered] [recorded] > aggressive-splitted [0] ./example.js 2:0-22 3 modules -chunk {2} 85f47c3abb26198f77a8.js 48.8 KiB [entry] [rendered] [recorded] +chunk {2} 4a984680da6e56d39889.js 48.8 KiB [entry] [rendered] [recorded] > aggressive-splitted main [0] ./example.js 16 modules chunk {3} de45e35c6080cc33435c.js 30.5 KiB [initial] [rendered] [recorded] @@ -132,9 +132,9 @@ cb73f4cb70c06c65b248.js 12.1 KiB 8 [emitted] 53cef345d9ccd6bb3876.js 13 KiB 10 [emitted] c5b86ebb82485218af01.js 4.99 KiB 11 [emitted] 0309b4e1ec5aa2f66403.js 7.02 KiB 12 [emitted] -4e1c37d40514df5cc50e.js 10.2 KiB 13 [emitted] +48e2dcb305baa66eaaff.js 10.2 KiB 13 [emitted] 0b3c96677d32cb9cb074.js 5.91 KiB 14 [emitted] -Entrypoint main = 4e1c37d40514df5cc50e.js 0309b4e1ec5aa2f66403.js 0b3c96677d32cb9cb074.js +Entrypoint main = 48e2dcb305baa66eaaff.js 0309b4e1ec5aa2f66403.js 0b3c96677d32cb9cb074.js chunk {0} ae85856cebfcdd8c297c.js 18.9 KiB {12} {13} {14} [rendered] > aggressive-splitted [30] ./example.js 2:0-22 9 modules @@ -174,7 +174,7 @@ chunk {11} c5b86ebb82485218af01.js 31.4 KiB {12} {13} {14} [rendered] [recorde chunk {12} 0309b4e1ec5aa2f66403.js 30.5 KiB [initial] [rendered] [recorded] > aggressive-splitted main [30] ./example.js 3 modules -chunk {13} 4e1c37d40514df5cc50e.js 48.8 KiB [entry] [rendered] [recorded] +chunk {13} 48e2dcb305baa66eaaff.js 48.8 KiB [entry] [rendered] [recorded] > aggressive-splitted main [30] ./example.js 16 modules chunk {14} 0b3c96677d32cb9cb074.js 32.4 KiB [initial] [rendered] @@ -596,7 +596,7 @@ chunk {14} 0b3c96677d32cb9cb074.js 32.4 KiB [initial] [rendered] "../../node_modules/react/lib/ReactVersion.js", "../../node_modules/create-react-class/factory.js" ], - "hash": "85f47c3abb26198f77a84b0d186d3d6f", + "hash": "4a984680da6e56d398893f0087df99fd", "id": 2 }, { diff --git a/examples/http2-aggressive-splitting/template.md b/examples/http2-aggressive-splitting/template.md index 80ef791df..8ddec5985 100644 --- a/examples/http2-aggressive-splitting/template.md +++ b/examples/http2-aggressive-splitting/template.md @@ -37,5 +37,5 @@ The backward compatibility (non HTTP2 client) improves with bigger `maxSize`, as ## Records ``` -{{js/records.json}} +{{dist/records.json}} ``` diff --git a/examples/http2-aggressive-splitting/webpack.config.js b/examples/http2-aggressive-splitting/webpack.config.js index a208c8f6f..5150993a1 100644 --- a/examples/http2-aggressive-splitting/webpack.config.js +++ b/examples/http2-aggressive-splitting/webpack.config.js @@ -5,7 +5,7 @@ module.exports = { cache: true, // better performance for the AggressiveSplittingPlugin entry: "./example", output: { - path: path.join(__dirname, "js"), + path: path.join(__dirname, "dist"), filename: "[chunkhash].js", chunkFilename: "[chunkhash].js" }, @@ -18,5 +18,5 @@ module.exports = { "process.env.NODE_ENV": JSON.stringify("production") }) ], - recordsOutputPath: path.join(__dirname, "js", "records.json") + recordsOutputPath: path.join(__dirname, "dist", "records.json") }; diff --git a/examples/hybrid-routing/README.md b/examples/hybrid-routing/README.md index 53cfd04f2..68a048f71 100644 --- a/examples/hybrid-routing/README.md +++ b/examples/hybrid-routing/README.md @@ -14,7 +14,7 @@ module.exports = { "commons": "./router" }, output: { - path: path.join(__dirname, "js"), + path: path.join(__dirname, "dist"), publicPath: "js/", filename: "[name].bundle.js", chunkFilename: "[id].chunk.js" @@ -95,7 +95,7 @@ window.onLinkToPage = function onLinkToPage(name) { // name is "a" or "b" ``` -# js/commons.js +# dist/commons.js
/******/ (function(modules) { /* webpackBootstrap */ }) @@ -268,7 +268,7 @@ window.onLinkToPage = function onLinkToPage(name) { // name is "a" or "b" /******/ __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); }; /******/ /******/ // __webpack_public_path__ -/******/ __webpack_require__.p = "js/"; +/******/ __webpack_require__.p = "dist/"; /******/ /******/ // on error function for async loading /******/ __webpack_require__.oe = function(err) { console.error(err); throw err; }; @@ -421,7 +421,7 @@ window.onLinkToPage = function onLinkToPage(name) { // name is "a" or "b" /******/ ]); ``` -# js/pageA.bundle.js +# dist/pageA.bundle.js ``` javascript (window["webpackJsonp"] = window["webpackJsonp"] || []).push([[3],{ @@ -455,7 +455,7 @@ render(__webpack_require__(/*! ./aPage */ 2)); },[[8,4,3]]]); ``` -# js/1.chunk.js +# dist/1.chunk.js ``` javascript (window["webpackJsonp"] = window["webpackJsonp"] || []).push([[1],[ diff --git a/examples/hybrid-routing/template.md b/examples/hybrid-routing/template.md index d5a940eff..15c83b6a9 100644 --- a/examples/hybrid-routing/template.md +++ b/examples/hybrid-routing/template.md @@ -32,22 +32,22 @@ {{pageA.html}} ``` -# js/commons.js +# dist/commons.js ``` javascript -{{js/commons.js}} +{{dist/commons.js}} ``` -# js/pageA.bundle.js +# dist/pageA.bundle.js ``` javascript -{{js/pageA.bundle.js}} +{{dist/pageA.bundle.js}} ``` -# js/1.chunk.js +# dist/1.chunk.js ``` javascript -{{js/1.chunk.js}} +{{dist/1.chunk.js}} ``` # Info diff --git a/examples/hybrid-routing/webpack.config.js b/examples/hybrid-routing/webpack.config.js index 9f21e3706..43f20dbef 100644 --- a/examples/hybrid-routing/webpack.config.js +++ b/examples/hybrid-routing/webpack.config.js @@ -11,7 +11,7 @@ module.exports = { "commons": "./router" }, output: { - path: path.join(__dirname, "js"), + path: path.join(__dirname, "dist"), publicPath: "js/", filename: "[name].bundle.js", chunkFilename: "[id].chunk.js" diff --git a/examples/i18n/README.md b/examples/i18n/README.md index e44f02eee..08d6f6da2 100644 --- a/examples/i18n/README.md +++ b/examples/i18n/README.md @@ -27,7 +27,7 @@ module.exports = Object.keys(languages).map(function(language) { // mode: "development || "production", entry: "./example", output: { - path: path.join(__dirname, "js"), + path: path.join(__dirname, "dist"), filename: language + ".output.js" }, plugins: [ @@ -47,7 +47,7 @@ module.exports = Object.keys(languages).map(function(language) { } ``` -# js/de.output.js +# dist/de.output.js
/******/ (function(modules) { /* webpackBootstrap */ }) @@ -116,7 +116,7 @@ module.exports = Object.keys(languages).map(function(language) { /******/ __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); }; /******/ /******/ // __webpack_public_path__ -/******/ __webpack_require__.p = "js/"; +/******/ __webpack_require__.p = "dist/"; /******/ /******/ // Load entry module and return exports /******/ return __webpack_require__(__webpack_require__.s = 0); @@ -142,7 +142,7 @@ console.log("Missing Text"); /******/ ]); ``` -# js/en.output.js +# dist/en.output.js ``` javascript /******/ (function(modules) { // webpackBootstrap @@ -209,7 +209,7 @@ console.log("Missing Text"); /******/ __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); }; /******/ /******/ // __webpack_public_path__ -/******/ __webpack_require__.p = "js/"; +/******/ __webpack_require__.p = "dist/"; /******/ /******/ // Load entry module and return exports /******/ return __webpack_require__(__webpack_require__.s = 0); @@ -268,7 +268,7 @@ Version: webpack next Child en: Hash: 0a1b2c3d4e5f6a7b8c9d Asset Size Chunks Chunk Names - en.output.js 604 bytes 0 [emitted] main + en.output.js 606 bytes 0 [emitted] main Entrypoint main = en.output.js chunk {0} en.output.js (main) 65 bytes [entry] [rendered] > main [0] ./example.js @@ -277,7 +277,7 @@ Child en: Child de: Hash: 0a1b2c3d4e5f6a7b8c9d Asset Size Chunks Chunk Names - de.output.js 603 bytes 0 [emitted] main + de.output.js 605 bytes 0 [emitted] main Entrypoint main = de.output.js chunk {0} de.output.js (main) 65 bytes [entry] [rendered] > main [0] ./example.js diff --git a/examples/i18n/template.md b/examples/i18n/template.md index 98b5eee7e..88d5f719c 100644 --- a/examples/i18n/template.md +++ b/examples/i18n/template.md @@ -23,16 +23,16 @@ The I18nPlugin replaces every occurrence of the i18n function `__(...)` with a c {{de.json}} ``` -# js/de.output.js +# dist/de.output.js ``` javascript -{{js/de.output.js}} +{{dist/de.output.js}} ``` -# js/en.output.js +# dist/en.output.js ``` javascript -{{js/en.output.js}} +{{dist/en.output.js}} ``` # Info diff --git a/examples/i18n/webpack.config.js b/examples/i18n/webpack.config.js index 802264d21..da52d4b8f 100644 --- a/examples/i18n/webpack.config.js +++ b/examples/i18n/webpack.config.js @@ -10,7 +10,7 @@ module.exports = Object.keys(languages).map(function(language) { // mode: "development || "production", entry: "./example", output: { - path: path.join(__dirname, "js"), + path: path.join(__dirname, "dist"), filename: language + ".output.js" }, plugins: [ diff --git a/examples/loader/README.md b/examples/loader/README.md index d98301aca..517f7e8cc 100644 --- a/examples/loader/README.md +++ b/examples/loader/README.md @@ -31,7 +31,7 @@ module.exports = function(content) { } ``` -# js/output.js +# dist/output.js
/******/ (function(modules) { /* webpackBootstrap */ }) @@ -100,7 +100,7 @@ module.exports = function(content) { /******/ __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); }; /******/ /******/ // __webpack_public_path__ -/******/ __webpack_require__.p = "js/"; +/******/ __webpack_require__.p = "dist/"; /******/ /******/ // Load entry module and return exports /******/ return __webpack_require__(__webpack_require__.s = 0); diff --git a/examples/loader/template.md b/examples/loader/template.md index 03bdb7613..1480a840f 100644 --- a/examples/loader/template.md +++ b/examples/loader/template.md @@ -22,10 +22,10 @@ {{test.css}} ``` -# js/output.js +# dist/output.js ``` javascript -{{js/output.js}} +{{dist/output.js}} ``` # Console output diff --git a/examples/mixed/README.md b/examples/mixed/README.md index cd8d4145f..64210b8a6 100644 --- a/examples/mixed/README.md +++ b/examples/mixed/README.md @@ -54,7 +54,7 @@ require( ); ``` -# js/output.js +# dist/output.js
/******/ (function(modules) { /* webpackBootstrap */ }) @@ -213,7 +213,7 @@ require( /******/ __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); }; /******/ /******/ // __webpack_public_path__ -/******/ __webpack_require__.p = "js/"; +/******/ __webpack_require__.p = "dist/"; /******/ /******/ // on error function for async loading /******/ __webpack_require__.oe = function(err) { console.error(err); throw err; }; @@ -315,7 +315,7 @@ __webpack_require__.e(/*! AMD require */ 0).then(function() { var __WEBPACK_AMD_ /******/ ]); ``` -# js/0.output.js +# dist/0.output.js ``` javascript (window["webpackJsonp"] = window["webpackJsonp"] || []).push([[0],[ @@ -407,7 +407,7 @@ Hash: 0a1b2c3d4e5f6a7b8c9d Version: webpack next Asset Size Chunks Chunk Names 0.output.js 1.87 KiB 0 [emitted] - output.js 9.72 KiB 1 [emitted] main + output.js 9.73 KiB 1 [emitted] main Entrypoint main = output.js chunk {0} 0.output.js 439 bytes {1} [rendered] > [3] ./example.js 7:0-14:1 diff --git a/examples/mixed/template.md b/examples/mixed/template.md index 47c1e0fd7..aba51a1fa 100644 --- a/examples/mixed/template.md +++ b/examples/mixed/template.md @@ -20,16 +20,16 @@ You see that everything is working nicely together. {{commonjs.js}} ``` -# js/output.js +# dist/output.js ``` javascript -{{js/output.js}} +{{dist/output.js}} ``` -# js/0.output.js +# dist/0.output.js ``` javascript -{{js/0.output.js}} +{{dist/0.output.js}} ``` # Info diff --git a/examples/move-to-parent/README.md b/examples/move-to-parent/README.md index 76b447777..dd9ae5e2d 100644 --- a/examples/move-to-parent/README.md +++ b/examples/move-to-parent/README.md @@ -43,7 +43,7 @@ require(["./a", "./b", "./c", "./d"]); var path = require("path"); var CommonsChunkPlugin = require("../../lib/optimize/CommonsChunkPlugin"); var outputOptions = { - path: path.join(__dirname, "js"), + path: path.join(__dirname, "dist"), filename: "[name].bundle.js", chunkFilename: "[id].chunk.js" }; @@ -200,7 +200,7 @@ Child pageC: Hash: 0a1b2c3d4e5f6a7b8c9d Asset Size Chunks Chunk Names 0.chunk.js 247 bytes 0 [emitted] - pageC.bundle.js 7.98 KiB 1 [emitted] pageC + pageC.bundle.js 7.99 KiB 1 [emitted] pageC Entrypoint pageC = pageC.bundle.js chunk {0} 0.chunk.js 21 bytes {1} [rendered] > duplicate [4] ./page.js 2:0-23 @@ -297,7 +297,7 @@ Child pageC: Hash: 0a1b2c3d4e5f6a7b8c9d Asset Size Chunks Chunk Names 0.chunk.js 90 bytes 0 [emitted] - pageC.bundle.js 1.86 KiB 1 [emitted] pageC + pageC.bundle.js 1.87 KiB 1 [emitted] pageC Entrypoint pageC = pageC.bundle.js chunk {0} 0.chunk.js 21 bytes {1} [rendered] > duplicate [4] ./page.js 2:0-23 diff --git a/examples/move-to-parent/webpack.config.js b/examples/move-to-parent/webpack.config.js index 80ccad2d5..f53d3f9c9 100644 --- a/examples/move-to-parent/webpack.config.js +++ b/examples/move-to-parent/webpack.config.js @@ -1,7 +1,7 @@ var path = require("path"); var CommonsChunkPlugin = require("../../lib/optimize/CommonsChunkPlugin"); var outputOptions = { - path: path.join(__dirname, "js"), + path: path.join(__dirname, "dist"), filename: "[name].bundle.js", chunkFilename: "[id].chunk.js" }; diff --git a/examples/multi-compiler/README.md b/examples/multi-compiler/README.md index 9211e955b..e2f0380d5 100644 --- a/examples/multi-compiler/README.md +++ b/examples/multi-compiler/README.md @@ -19,7 +19,7 @@ module.exports = [ // mode: "development || "production", entry: "./example", output: { - path: path.join(__dirname, "js"), + path: path.join(__dirname, "dist"), filename: "mobile.js" }, plugins: [ @@ -33,7 +33,7 @@ module.exports = [ // mode: "development || "production", entry: "./example", output: { - path: path.join(__dirname, "js"), + path: path.join(__dirname, "dist"), filename: "desktop.js" }, plugins: [ @@ -45,7 +45,7 @@ module.exports = [ ]; ``` -# js/desktop.js +# dist/desktop.js
/******/ (function(modules) { /* webpackBootstrap */ }) @@ -114,7 +114,7 @@ module.exports = [ /******/ __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); }; /******/ /******/ // __webpack_public_path__ -/******/ __webpack_require__.p = "js/"; +/******/ __webpack_require__.p = "dist/"; /******/ /******/ // Load entry module and return exports /******/ return __webpack_require__(__webpack_require__.s = 0); @@ -142,7 +142,7 @@ console.log("Running " + "desktop" + " build"); /******/ ]); ``` -# js/mobile.js +# dist/mobile.js ``` javascript /******/ (function(modules) { // webpackBootstrap @@ -209,7 +209,7 @@ console.log("Running " + "desktop" + " build"); /******/ __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); }; /******/ /******/ // __webpack_public_path__ -/******/ __webpack_require__.p = "js/"; +/******/ __webpack_require__.p = "dist/"; /******/ /******/ // Load entry module and return exports /******/ return __webpack_require__(__webpack_require__.s = 0); @@ -279,7 +279,7 @@ Version: webpack next Child mobile: Hash: 0a1b2c3d4e5f6a7b8c9d Asset Size Chunks Chunk Names - mobile.js 606 bytes 0 [emitted] main + mobile.js 608 bytes 0 [emitted] main Entrypoint main = mobile.js chunk {0} mobile.js (main) 117 bytes [entry] [rendered] > main [1] ./example.js @@ -290,7 +290,7 @@ Child mobile: Child desktop: Hash: 0a1b2c3d4e5f6a7b8c9d Asset Size Chunks Chunk Names - desktop.js 586 bytes 0 [emitted] main + desktop.js 588 bytes 0 [emitted] main Entrypoint main = desktop.js chunk {0} desktop.js (main) 97 bytes [entry] [rendered] > main [0] ./example.js diff --git a/examples/multi-compiler/template.md b/examples/multi-compiler/template.md index c3db272ef..f1d65349f 100644 --- a/examples/multi-compiler/template.md +++ b/examples/multi-compiler/template.md @@ -11,16 +11,16 @@ {{webpack.config.js}} ``` -# js/desktop.js +# dist/desktop.js ``` javascript -{{js/desktop.js}} +{{dist/desktop.js}} ``` -# js/mobile.js +# dist/mobile.js ``` javascript -{{js/mobile.js}} +{{dist/mobile.js}} ``` # Info diff --git a/examples/multi-compiler/webpack.config.js b/examples/multi-compiler/webpack.config.js index 9c124eb30..9d7fe9668 100644 --- a/examples/multi-compiler/webpack.config.js +++ b/examples/multi-compiler/webpack.config.js @@ -6,7 +6,7 @@ module.exports = [ // mode: "development || "production", entry: "./example", output: { - path: path.join(__dirname, "js"), + path: path.join(__dirname, "dist"), filename: "mobile.js" }, plugins: [ @@ -20,7 +20,7 @@ module.exports = [ // mode: "development || "production", entry: "./example", output: { - path: path.join(__dirname, "js"), + path: path.join(__dirname, "dist"), filename: "desktop.js" }, plugins: [ diff --git a/examples/multi-part-library/README.md b/examples/multi-part-library/README.md index 73319c183..056cafb0f 100644 --- a/examples/multi-part-library/README.md +++ b/examples/multi-part-library/README.md @@ -23,7 +23,7 @@ module.exports = { beta: "./beta" }, output: { - path: path.join(__dirname, "js"), + path: path.join(__dirname, "dist"), filename: "MyLibrary.[name].js", library: ["MyLibrary", "[name]"], libraryTarget: "umd" @@ -31,7 +31,7 @@ module.exports = { }; ``` -# js/MyLibrary.alpha.js +# dist/MyLibrary.alpha.js ``` javascript (function webpackUniversalModuleDefinition(root, factory) { @@ -112,7 +112,7 @@ return /******/ (function(modules) { // webpackBootstrap /******/ __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); }; /******/ /******/ // __webpack_public_path__ -/******/ __webpack_require__.p = "js/"; +/******/ __webpack_require__.p = "dist/"; /******/ /******/ // Load entry module and return exports /******/ return __webpack_require__(__webpack_require__.s = 0); @@ -138,7 +138,7 @@ module.exports = "alpha"; }); ``` -# js/MyLibrary.beta.js +# dist/MyLibrary.beta.js ``` javascript (function webpackUniversalModuleDefinition(root, factory) { @@ -215,7 +215,7 @@ return /******/ (function(modules) { // webpackBootstrap /******/ __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); }; /******/ /******/ // __webpack_public_path__ -/******/ __webpack_require__.p = "js/"; +/******/ __webpack_require__.p = "dist/"; /******/ /******/ // Load entry module and return exports /******/ return __webpack_require__(__webpack_require__.s = 1); @@ -265,8 +265,8 @@ chunk {1} MyLibrary.beta.js (beta) 24 bytes [entry] [rendered] Hash: 0a1b2c3d4e5f6a7b8c9d Version: webpack next Asset Size Chunks Chunk Names - MyLibrary.beta.js 826 bytes 0 [emitted] beta -MyLibrary.alpha.js 830 bytes 1 [emitted] alpha + MyLibrary.beta.js 828 bytes 0 [emitted] beta +MyLibrary.alpha.js 832 bytes 1 [emitted] alpha Entrypoint alpha = MyLibrary.alpha.js Entrypoint beta = MyLibrary.beta.js chunk {0} MyLibrary.beta.js (beta) 24 bytes [entry] [rendered] diff --git a/examples/multi-part-library/template.md b/examples/multi-part-library/template.md index f803b5d00..900b16dab 100644 --- a/examples/multi-part-library/template.md +++ b/examples/multi-part-library/template.md @@ -18,16 +18,16 @@ Note: When your library has dependencies that should not be included in the comp {{webpack.config.js}} ``` -# js/MyLibrary.alpha.js +# dist/MyLibrary.alpha.js ``` javascript -{{js/MyLibrary.alpha.js}} +{{dist/MyLibrary.alpha.js}} ``` -# js/MyLibrary.beta.js +# dist/MyLibrary.beta.js ``` javascript -{{js/MyLibrary.beta.js}} +{{dist/MyLibrary.beta.js}} ``` # Info diff --git a/examples/multi-part-library/webpack.config.js b/examples/multi-part-library/webpack.config.js index abd0036bb..f79be11fe 100644 --- a/examples/multi-part-library/webpack.config.js +++ b/examples/multi-part-library/webpack.config.js @@ -6,7 +6,7 @@ module.exports = { beta: "./beta" }, output: { - path: path.join(__dirname, "js"), + path: path.join(__dirname, "dist"), filename: "MyLibrary.[name].js", library: ["MyLibrary", "[name]"], libraryTarget: "umd" diff --git a/examples/multiple-commons-chunks/README.md b/examples/multiple-commons-chunks/README.md index 6c68a4ab0..d0c17b27c 100644 --- a/examples/multiple-commons-chunks/README.md +++ b/examples/multiple-commons-chunks/README.md @@ -29,7 +29,7 @@ module.exports = { adminPageC: "./adminPageC", }, output: { - path: path.join(__dirname, "js"), + path: path.join(__dirname, "dist"), filename: "[name].js" }, plugins: [ @@ -75,7 +75,7 @@ module.exports = { ``` -# js/commons.js +# dist/commons.js
/******/ (function(modules) { /* webpackBootstrap */ }) @@ -248,7 +248,7 @@ module.exports = { /******/ __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); }; /******/ /******/ // __webpack_public_path__ -/******/ __webpack_require__.p = "js/"; +/******/ __webpack_require__.p = "dist/"; /******/ /******/ // on error function for async loading /******/ __webpack_require__.oe = function(err) { console.error(err); throw err; }; @@ -290,7 +290,7 @@ module.exports = { /******/ ]); ``` -# js/pageA.js +# dist/pageA.js ``` javascript (window["webpackJsonp"] = window["webpackJsonp"] || []).push([[0],[ @@ -322,7 +322,7 @@ __webpack_require__(/*! ./modules/a-c */ 3); ],[[0,7,0]]]); ``` -# js/admin-commons.js +# dist/admin-commons.js ``` javascript (window["webpackJsonp"] = window["webpackJsonp"] || []).push([[6],{ @@ -341,7 +341,7 @@ __webpack_require__(/*! ./modules/a-c */ 3); }]); ``` -# js/adminPageA.js +# dist/adminPageA.js ``` javascript (window["webpackJsonp"] = window["webpackJsonp"] || []).push([[3],{ diff --git a/examples/multiple-commons-chunks/template.md b/examples/multiple-commons-chunks/template.md index c946955b2..37b9a96c4 100644 --- a/examples/multiple-commons-chunks/template.md +++ b/examples/multiple-commons-chunks/template.md @@ -28,28 +28,28 @@ {{adminPageA.html}} ``` -# js/commons.js +# dist/commons.js ``` javascript -{{js/commons.js}} +{{dist/commons.js}} ``` -# js/pageA.js +# dist/pageA.js ``` javascript -{{js/pageA.js}} +{{dist/pageA.js}} ``` -# js/admin-commons.js +# dist/admin-commons.js ``` javascript -{{js/admin-commons.js}} +{{dist/admin-commons.js}} ``` -# js/adminPageA.js +# dist/adminPageA.js ``` javascript -{{js/adminPageA.js}} +{{dist/adminPageA.js}} ``` # Info diff --git a/examples/multiple-commons-chunks/webpack.config.js b/examples/multiple-commons-chunks/webpack.config.js index d7df7c176..5d96f620d 100644 --- a/examples/multiple-commons-chunks/webpack.config.js +++ b/examples/multiple-commons-chunks/webpack.config.js @@ -11,7 +11,7 @@ module.exports = { adminPageC: "./adminPageC", }, output: { - path: path.join(__dirname, "js"), + path: path.join(__dirname, "dist"), filename: "[name].js" }, plugins: [ diff --git a/examples/multiple-entry-points-commons-chunk-css-bundle/README.md b/examples/multiple-entry-points-commons-chunk-css-bundle/README.md index b1cc1ee9c..8e4488dd8 100644 --- a/examples/multiple-entry-points-commons-chunk-css-bundle/README.md +++ b/examples/multiple-entry-points-commons-chunk-css-bundle/README.md @@ -67,7 +67,7 @@ module.exports = { C: "./c", }, output: { - path: path.join(__dirname, "js"), + path: path.join(__dirname, "dist"), filename: "[name].js" }, module: { @@ -99,7 +99,7 @@ module.exports = { }; ``` -# js/A.js +# dist/A.js ``` javascript (window["webpackJsonp"] = window["webpackJsonp"] || []).push([[0],{ @@ -131,57 +131,57 @@ __webpack_require__(/*! ./styleA.css */ 7); },[[0,3,0]]]); ``` -# js/commons.css +# dist/commons.css ``` css body { - background: url(js/ce21cbdd9b894e6af794813eb3fdaf60.png); + background: url(dist/ce21cbdd9b894e6af794813eb3fdaf60.png); } ``` -# js/A.css +# dist/A.css ``` css .a { - background: url(js/d090b6fba0f6d326d282a19146ff54a7.png); + background: url(dist/d090b6fba0f6d326d282a19146ff54a7.png); } ``` -# js/B.css +# dist/B.css ``` css .b { - background: url(js/16155c689e517682064c99893cb832cc.png); + background: url(dist/16155c689e517682064c99893cb832cc.png); } ``` -# js/B.css (Minimized) +# dist/B.css (Minimized) ``` css .b { - background: url(js/16155c689e517682064c99893cb832cc.png); + background: url(dist/16155c689e517682064c99893cb832cc.png); } ``` -# js/C.css +# dist/C.css ``` css body { - background: url(js/ce21cbdd9b894e6af794813eb3fdaf60.png); + background: url(dist/ce21cbdd9b894e6af794813eb3fdaf60.png); } .c { - background: url(js/c2a2f62d69330b7d787782f5010f9d13.png); + background: url(dist/c2a2f62d69330b7d787782f5010f9d13.png); } ``` -# js/C.css (Minimized) +# dist/C.css (Minimized) ``` css body { - background: url(js/ce21cbdd9b894e6af794813eb3fdaf60.png); + background: url(dist/ce21cbdd9b894e6af794813eb3fdaf60.png); } .c { - background: url(js/c2a2f62d69330b7d787782f5010f9d13.png); + background: url(dist/c2a2f62d69330b7d787782f5010f9d13.png); } ``` @@ -201,10 +201,10 @@ c2a2f62d69330b7d787782f5010f9d13.png 120 bytes [emitted] B.js 551 bytes 1 [emitted] B 16155c689e517682064c99893cb832cc.png 120 bytes [emitted] commons.js 7.26 KiB 3 [emitted] commons - A.css 69 bytes 0 [emitted] A - B.css 69 bytes 1 [emitted] B - C.css 140 bytes 2 [emitted] C - commons.css 71 bytes 3 [emitted] commons + A.css 71 bytes 0 [emitted] A + B.css 71 bytes 1 [emitted] B + C.css 144 bytes 2 [emitted] C + commons.css 73 bytes 3 [emitted] commons Entrypoint A = commons.js commons.css A.js A.css Entrypoint B = commons.js commons.css B.js B.css Entrypoint C = C.js C.css @@ -284,11 +284,11 @@ c2a2f62d69330b7d787782f5010f9d13.png 120 bytes [emitted] B.js 118 bytes 0 [emitted] B A.js 120 bytes 1 [emitted] A 16155c689e517682064c99893cb832cc.png 120 bytes [emitted] - C.js 574 bytes 3 [emitted] C - A.css 69 bytes 1 [emitted] A - B.css 69 bytes 0 [emitted] B - C.css 140 bytes 3 [emitted] C - commons.css 71 bytes 2 [emitted] commons + C.js 576 bytes 3 [emitted] C + A.css 71 bytes 1 [emitted] A + B.css 71 bytes 0 [emitted] B + C.css 144 bytes 3 [emitted] C + commons.css 73 bytes 2 [emitted] commons Entrypoint A = commons.js commons.css A.js A.css Entrypoint B = commons.js commons.css B.js B.css Entrypoint C = C.js C.css diff --git a/examples/multiple-entry-points-commons-chunk-css-bundle/template.md b/examples/multiple-entry-points-commons-chunk-css-bundle/template.md index 50d624d5b..9967bb506 100644 --- a/examples/multiple-entry-points-commons-chunk-css-bundle/template.md +++ b/examples/multiple-entry-points-commons-chunk-css-bundle/template.md @@ -47,46 +47,46 @@ {{webpack.config.js}} ``` -# js/A.js +# dist/A.js ``` javascript -{{js/A.js}} +{{dist/A.js}} ``` -# js/commons.css +# dist/commons.css ``` css -{{js/commons.css}} +{{dist/commons.css}} ``` -# js/A.css +# dist/A.css ``` css -{{js/A.css}} +{{dist/A.css}} ``` -# js/B.css +# dist/B.css ``` css -{{js/B.css}} +{{dist/B.css}} ``` -# js/B.css (Minimized) +# dist/B.css (Minimized) ``` css -{{production:js/B.css}} +{{production:dist/B.css}} ``` -# js/C.css +# dist/C.css ``` css -{{js/C.css}} +{{dist/C.css}} ``` -# js/C.css (Minimized) +# dist/C.css (Minimized) ``` css -{{production:js/C.css}} +{{production:dist/C.css}} ``` # Info diff --git a/examples/multiple-entry-points-commons-chunk-css-bundle/webpack.config.js b/examples/multiple-entry-points-commons-chunk-css-bundle/webpack.config.js index a2c983362..34623bb27 100644 --- a/examples/multiple-entry-points-commons-chunk-css-bundle/webpack.config.js +++ b/examples/multiple-entry-points-commons-chunk-css-bundle/webpack.config.js @@ -10,7 +10,7 @@ module.exports = { C: "./c", }, output: { - path: path.join(__dirname, "js"), + path: path.join(__dirname, "dist"), filename: "[name].js" }, module: { diff --git a/examples/multiple-entry-points/README.md b/examples/multiple-entry-points/README.md index 79c09bd2e..c75e62c0e 100644 --- a/examples/multiple-entry-points/README.md +++ b/examples/multiple-entry-points/README.md @@ -57,7 +57,7 @@ module.exports = { pageB: "./pageB" }, output: { - path: path.join(__dirname, "js"), + path: path.join(__dirname, "dist"), filename: "[name].bundle.js", chunkFilename: "[id].chunk.js" }, @@ -85,7 +85,7 @@ module.exports = { ``` -# js/commons.js +# dist/commons.js
/******/ (function(modules) { /* webpackBootstrap */ }) @@ -258,7 +258,7 @@ module.exports = { /******/ __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); }; /******/ /******/ // __webpack_public_path__ -/******/ __webpack_require__.p = "js/"; +/******/ __webpack_require__.p = "dist/"; /******/ /******/ // on error function for async loading /******/ __webpack_require__.oe = function(err) { console.error(err); throw err; }; @@ -290,7 +290,7 @@ module.exports = "Common"; /******/ ]); ``` -# js/pageA.bundle.js +# dist/pageA.bundle.js ``` javascript (window["webpackJsonp"] = window["webpackJsonp"] || []).push([[2],{ @@ -312,7 +312,7 @@ __webpack_require__.e(/*! AMD require | duplicate */ 0).then(function() { var __ },[[3,3,2]]]); ``` -# js/pageB.bundle.js +# dist/pageB.bundle.js ``` javascript (window["webpackJsonp"] = window["webpackJsonp"] || []).push([[1],{ @@ -335,7 +335,7 @@ __webpack_require__.e(/*! require.ensure | duplicate */ 0).then((function(requir },[[2,3,1]]]); ``` -# js/0.chunk.js +# dist/0.chunk.js ``` javascript (window["webpackJsonp"] = window["webpackJsonp"] || []).push([[0],[ @@ -400,7 +400,7 @@ Version: webpack next 0.chunk.js 120 bytes 0 [emitted] pageB.bundle.js 168 bytes 1 [emitted] pageB pageA.bundle.js 193 bytes 2 [emitted] pageA - commons.js 1.74 KiB 3 [emitted] commons + commons.js 1.75 KiB 3 [emitted] commons Entrypoint pageA = commons.js pageA.bundle.js Entrypoint pageB = commons.js pageB.bundle.js chunk {0} 0.chunk.js 91 bytes {1} {2} [rendered] diff --git a/examples/multiple-entry-points/template.md b/examples/multiple-entry-points/template.md index 65503dc05..bedd1835c 100644 --- a/examples/multiple-entry-points/template.md +++ b/examples/multiple-entry-points/template.md @@ -50,28 +50,28 @@ You can also see the info that is printed to console. It shows among others: {{pageA.html}} ``` -# js/commons.js +# dist/commons.js ``` javascript -{{js/commons.js}} +{{dist/commons.js}} ``` -# js/pageA.bundle.js +# dist/pageA.bundle.js ``` javascript -{{js/pageA.bundle.js}} +{{dist/pageA.bundle.js}} ``` -# js/pageB.bundle.js +# dist/pageB.bundle.js ``` javascript -{{js/pageB.bundle.js}} +{{dist/pageB.bundle.js}} ``` -# js/0.chunk.js +# dist/0.chunk.js ``` javascript -{{js/0.chunk.js}} +{{dist/0.chunk.js}} ``` # Info diff --git a/examples/multiple-entry-points/webpack.config.js b/examples/multiple-entry-points/webpack.config.js index 2b3fd7e53..a2e9b0176 100644 --- a/examples/multiple-entry-points/webpack.config.js +++ b/examples/multiple-entry-points/webpack.config.js @@ -7,7 +7,7 @@ module.exports = { pageB: "./pageB" }, output: { - path: path.join(__dirname, "js"), + path: path.join(__dirname, "dist"), filename: "[name].bundle.js", chunkFilename: "[id].chunk.js" }, diff --git a/examples/named-chunks/README.md b/examples/named-chunks/README.md index 942d59c9d..b9d21903a 100644 --- a/examples/named-chunks/README.md +++ b/examples/named-chunks/README.md @@ -24,7 +24,7 @@ require.ensure(["b"], function(require) { ``` -# js/output.js +# dist/output.js
/******/ (function(modules) { /* webpackBootstrap */ }) @@ -183,7 +183,7 @@ require.ensure(["b"], function(require) { /******/ __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); }; /******/ /******/ // __webpack_public_path__ -/******/ __webpack_require__.p = "js/"; +/******/ __webpack_require__.p = "dist/"; /******/ /******/ // on error function for async loading /******/ __webpack_require__.oe = function(err) { console.error(err); throw err; }; @@ -249,7 +249,7 @@ __webpack_require__.e(/*! require.ensure */ 1).then((function(require) { /******/ ]); ``` -# js/0.output.js +# dist/0.output.js ``` javascript (window["webpackJsonp"] = window["webpackJsonp"] || []).push([[0],[ @@ -288,7 +288,7 @@ __webpack_require__.e(/*! require.ensure */ 1).then((function(require) { ]]); ``` -# js/1.output.js +# dist/1.output.js ``` javascript (window["webpackJsonp"] = window["webpackJsonp"] || []).push([[1],[ diff --git a/examples/named-chunks/template.md b/examples/named-chunks/template.md index 146be6941..ef6baf49e 100644 --- a/examples/named-chunks/template.md +++ b/examples/named-chunks/template.md @@ -5,22 +5,22 @@ ``` -# js/output.js +# dist/output.js ``` javascript -{{js/output.js}} +{{dist/output.js}} ``` -# js/0.output.js +# dist/0.output.js ``` javascript -{{js/0.output.js}} +{{dist/0.output.js}} ``` -# js/1.output.js +# dist/1.output.js ``` javascript -{{js/1.output.js}} +{{dist/1.output.js}} ``` # Info diff --git a/examples/require.context/README.md b/examples/require.context/README.md index d1ac801c4..a7e771ee3 100644 --- a/examples/require.context/README.md +++ b/examples/require.context/README.md @@ -22,7 +22,7 @@ module.exports = function() { } ``` -# js/output.js +# dist/output.js
/******/ (function(modules) { /* webpackBootstrap */ }) @@ -91,7 +91,7 @@ module.exports = function() { /******/ __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); }; /******/ /******/ // __webpack_public_path__ -/******/ __webpack_require__.p = "js/"; +/******/ __webpack_require__.p = "dist/"; /******/ /******/ // Load entry module and return exports /******/ return __webpack_require__(__webpack_require__.s = 0); diff --git a/examples/require.context/template.md b/examples/require.context/template.md index 2a7cca1be..815ce7fee 100644 --- a/examples/require.context/template.md +++ b/examples/require.context/template.md @@ -18,10 +18,10 @@ module.exports = function() { } ``` -# js/output.js +# dist/output.js ``` javascript -{{js/output.js}} +{{dist/output.js}} ``` # Info diff --git a/examples/require.resolve/README.md b/examples/require.resolve/README.md index c11f47392..752ca42b9 100644 --- a/examples/require.resolve/README.md +++ b/examples/require.resolve/README.md @@ -23,7 +23,7 @@ if(a == a2) throw new Error("Cache clear failed :("); module.exports = Math.random(); ``` -# js/output.js +# dist/output.js
/******/ (function(modules) { /* webpackBootstrap */ }) @@ -92,7 +92,7 @@ module.exports = Math.random(); /******/ __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); }; /******/ /******/ // __webpack_public_path__ -/******/ __webpack_require__.p = "js/"; +/******/ __webpack_require__.p = "dist/"; /******/ /******/ // Load entry module and return exports /******/ return __webpack_require__(__webpack_require__.s = 0); @@ -165,7 +165,7 @@ chunk {0} output.js (main) 326 bytes [entry] [rendered] Hash: 0a1b2c3d4e5f6a7b8c9d Version: webpack next Asset Size Chunks Chunk Names -output.js 665 bytes 0 [emitted] main +output.js 667 bytes 0 [emitted] main Entrypoint main = output.js chunk {0} output.js (main) 326 bytes [entry] [rendered] > main [1] ./example.js diff --git a/examples/require.resolve/template.md b/examples/require.resolve/template.md index 7f6caea03..d991ada64 100644 --- a/examples/require.resolve/template.md +++ b/examples/require.resolve/template.md @@ -11,10 +11,10 @@ {{a.js}} ``` -# js/output.js +# dist/output.js ``` javascript -{{js/output.js}} +{{dist/output.js}} ``` # Info diff --git a/examples/scope-hoisting/README.md b/examples/scope-hoisting/README.md index d8de48d6b..4f5b0c635 100644 --- a/examples/scope-hoisting/README.md +++ b/examples/scope-hoisting/README.md @@ -114,7 +114,7 @@ module.exports = { -# js/output.js +# dist/output.js
/******/ (function(modules) { /* webpackBootstrap */ }) @@ -273,7 +273,7 @@ module.exports = { /******/ __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); }; /******/ /******/ // __webpack_public_path__ -/******/ __webpack_require__.p = "js/"; +/******/ __webpack_require__.p = "dist/"; /******/ /******/ // on error function for async loading /******/ __webpack_require__.oe = function(err) { console.error(err); throw err; }; @@ -356,7 +356,7 @@ __webpack_require__.e(/*! import() */ 0).then(__webpack_require__.bind(null, /*! /******/ ]); ``` -# js/0.output.js +# dist/0.output.js ``` javascript (window["webpackJsonp"] = window["webpackJsonp"] || []).push([[0],[ @@ -438,7 +438,7 @@ Hash: 0a1b2c3d4e5f6a7b8c9d Version: webpack next Asset Size Chunks Chunk Names 0.output.js 1.84 KiB 0 [emitted] - output.js 8.16 KiB 1 [emitted] main + output.js 8.17 KiB 1 [emitted] main Entrypoint main = output.js chunk {0} 0.output.js 286 bytes {1} [rendered] > [] 4:0-16 diff --git a/examples/scope-hoisting/template.md b/examples/scope-hoisting/template.md index 74584afdf..2aaf5408c 100644 --- a/examples/scope-hoisting/template.md +++ b/examples/scope-hoisting/template.md @@ -85,22 +85,22 @@ While module concatentation identifiers in modules are renamed to avoid conflict -# js/output.js +# dist/output.js ``` javascript -{{js/output.js}} +{{dist/output.js}} ``` -# js/0.output.js +# dist/0.output.js ``` javascript -{{js/0.output.js}} +{{dist/0.output.js}} ``` Minimized ``` javascript -{{production:js/0.output.js}} +{{production:dist/0.output.js}} ``` # Info diff --git a/examples/side-effects/README.md b/examples/side-effects/README.md index f915d6360..c30f9a4b0 100644 --- a/examples/side-effects/README.md +++ b/examples/side-effects/README.md @@ -52,7 +52,7 @@ export { b } from "./b"; export { c } from "./c"; ``` -# js/output.js +# dist/output.js
/******/ (function(modules) { /* webpackBootstrap */ }) @@ -121,7 +121,7 @@ export { c } from "./c"; /******/ __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); }; /******/ /******/ // __webpack_public_path__ -/******/ __webpack_require__.p = "js/"; +/******/ __webpack_require__.p = "dist/"; /******/ /******/ // Load entry module and return exports /******/ return __webpack_require__(__webpack_require__.s = 0); @@ -315,7 +315,7 @@ chunk {0} output.js (main) 443 bytes [entry] [rendered] Hash: 0a1b2c3d4e5f6a7b8c9d Version: webpack next Asset Size Chunks Chunk Names -output.js 598 bytes 0 [emitted] main +output.js 600 bytes 0 [emitted] main Entrypoint main = output.js chunk {0} output.js (main) 342 bytes [entry] [rendered] > main [] diff --git a/examples/side-effects/template.md b/examples/side-effects/template.md index ce3340fef..de9f3015c 100644 --- a/examples/side-effects/template.md +++ b/examples/side-effects/template.md @@ -37,10 +37,10 @@ Advantages: {{node_modules/big-module-with-flag/index.js}} ``` -# js/output.js +# dist/output.js ``` javascript -{{js/output.js}} +{{dist/output.js}} ``` # Info diff --git a/examples/source-map/README.md b/examples/source-map/README.md index d0e599b91..8a4d7e6bd 100644 --- a/examples/source-map/README.md +++ b/examples/source-map/README.md @@ -39,7 +39,7 @@ module.exports = [ bundle: "coffee-loader!./example.coffee", }, output: { - path: path.join(__dirname, "js"), + path: path.join(__dirname, "dist"), filename: `./[name]-${devtool}.js`, }, devtool, @@ -315,7 +315,7 @@ Child Hash: 0a1b2c3d4e5f6a7b8c9d Asset Size Chunks Chunk Names ./bundle-hidden-source-map.js 676 bytes 0 [emitted] bundle - ./manifest-hidden-source-map.js 7.06 KiB 1 [emitted] manifest + ./manifest-hidden-source-map.js 7.07 KiB 1 [emitted] manifest ./bundle-hidden-source-map.js.map 603 bytes 0 [emitted] bundle ./manifest-hidden-source-map.js.map 7.27 KiB 1 [emitted] manifest Entrypoint bundle = ./manifest-hidden-source-map.js ./manifest-hidden-source-map.js.map ./bundle-hidden-source-map.js ./bundle-hidden-source-map.js.map @@ -339,7 +339,7 @@ Child Hash: 0a1b2c3d4e5f6a7b8c9d Asset Size Chunks Chunk Names ./bundle-nosources-source-map.js 732 bytes 0 [emitted] bundle - ./manifest-nosources-source-map.js 7.12 KiB 1 [emitted] manifest + ./manifest-nosources-source-map.js 7.13 KiB 1 [emitted] manifest ./bundle-nosources-source-map.js.map 314 bytes 0 [emitted] bundle ./manifest-nosources-source-map.js.map 1.08 KiB 1 [emitted] manifest Entrypoint bundle = ./manifest-nosources-source-map.js ./manifest-nosources-source-map.js.map ./bundle-nosources-source-map.js ./bundle-nosources-source-map.js.map @@ -352,7 +352,7 @@ Child Hash: 0a1b2c3d4e5f6a7b8c9d Asset Size Chunks Chunk Names ./bundle-source-map.js 722 bytes 0 [emitted] bundle - ./manifest-source-map.js 7.1 KiB 1 [emitted] manifest + ./manifest-source-map.js 7.11 KiB 1 [emitted] manifest ./bundle-source-map.js.map 596 bytes 0 [emitted] bundle ./manifest-source-map.js.map 7.26 KiB 1 [emitted] manifest Entrypoint bundle = ./manifest-source-map.js ./manifest-source-map.js.map ./bundle-source-map.js ./bundle-source-map.js.map diff --git a/examples/source-map/template.md b/examples/source-map/template.md index ea5a46f5a..c28b09edd 100644 --- a/examples/source-map/template.md +++ b/examples/source-map/template.md @@ -16,60 +16,60 @@ This example demonstrates various types of source-maps. ## source-map.js and source-map.js.map ``` javascript -{{js/bundle-source-map.js}} +{{dist/bundle-source-map.js}} ``` ``` javascript -{{js/bundle-source-map.js.map}} +{{dist/bundle-source-map.js.map}} ``` ## hidden-source-map.js and hidden-source-map.js.map ``` javascript -{{js/bundle-hidden-source-map.js}} +{{dist/bundle-hidden-source-map.js}} ``` ``` javascript -{{js/bundle-hidden-source-map.js.map}} +{{dist/bundle-hidden-source-map.js.map}} ``` ## inline-source-map.js ``` javascript -{{js/bundle-inline-source-map.js}} +{{dist/bundle-inline-source-map.js}} ``` ## nosources-source-map.js.map ``` javascript -{{js/bundle-nosources-source-map.js.map}} +{{dist/bundle-nosources-source-map.js.map}} ``` ## eval-source-map.js ``` javascript -{{js/bundle-eval-source-map.js}} +{{dist/bundle-eval-source-map.js}} ``` ## eval.js ``` javascript -{{js/bundle-eval.js}} +{{dist/bundle-eval.js}} ``` ## cheap-eval-source-map.js ``` javascript -{{js/bundle-cheap-eval-source-map.js}} +{{dist/bundle-cheap-eval-source-map.js}} ``` ## cheap-module-eval-source-map.js ``` javascript -{{js/bundle-cheap-module-eval-source-map.js}} +{{dist/bundle-cheap-module-eval-source-map.js}} ``` ## cheap-module-source-map.js.map ``` javascript -{{js/bundle-cheap-module-source-map.js.map}} +{{dist/bundle-cheap-module-source-map.js.map}} ``` ## cheap-source-map.js.map ``` javascript -{{js/bundle-cheap-source-map.js.map}} +{{dist/bundle-cheap-source-map.js.map}} ``` # webpack output diff --git a/examples/source-map/webpack.config.js b/examples/source-map/webpack.config.js index 0b73dfbef..12b9e5fe0 100644 --- a/examples/source-map/webpack.config.js +++ b/examples/source-map/webpack.config.js @@ -18,7 +18,7 @@ module.exports = [ bundle: "coffee-loader!./example.coffee", }, output: { - path: path.join(__dirname, "js"), + path: path.join(__dirname, "dist"), filename: `./[name]-${devtool}.js`, }, devtool, diff --git a/examples/two-explicit-vendor-chunks/README.md b/examples/two-explicit-vendor-chunks/README.md index e6a09cd25..2ac0d323e 100644 --- a/examples/two-explicit-vendor-chunks/README.md +++ b/examples/two-explicit-vendor-chunks/README.md @@ -13,7 +13,7 @@ module.exports = { pageC: "./pageC" }, output: { - path: path.join(__dirname, "js"), + path: path.join(__dirname, "dist"), filename: "[name].js" }, plugins: [ @@ -25,7 +25,7 @@ module.exports = { }; ``` -# js/vendor1.js +# dist/vendor1.js
/******/ (function(modules) { /* webpackBootstrap */ }) @@ -198,7 +198,7 @@ module.exports = { /******/ __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); }; /******/ /******/ // __webpack_public_path__ -/******/ __webpack_require__.p = "js/"; +/******/ __webpack_require__.p = "dist/"; /******/ /******/ // on error function for async loading /******/ __webpack_require__.oe = function(err) { console.error(err); throw err; }; @@ -243,7 +243,7 @@ module.exports = "Vendor1"; /******/ ]); ``` -# js/vendor2.js +# dist/vendor2.js ``` javascript (window["webpackJsonp"] = window["webpackJsonp"] || []).push([[1],[ @@ -275,7 +275,7 @@ __webpack_require__(/*! ./vendor1 */ 1); ],[[2,0,1]]]); ``` -# js/pageA.js +# dist/pageA.js ``` javascript (window["webpackJsonp"] = window["webpackJsonp"] || []).push([[2],{ diff --git a/examples/two-explicit-vendor-chunks/template.md b/examples/two-explicit-vendor-chunks/template.md index 32f2b3f4a..dd246c140 100644 --- a/examples/two-explicit-vendor-chunks/template.md +++ b/examples/two-explicit-vendor-chunks/template.md @@ -4,22 +4,22 @@ {{webpack.config.js}} ``` -# js/vendor1.js +# dist/vendor1.js ``` javascript -{{js/vendor1.js}} +{{dist/vendor1.js}} ``` -# js/vendor2.js +# dist/vendor2.js ``` javascript -{{js/vendor2.js}} +{{dist/vendor2.js}} ``` -# js/pageA.js +# dist/pageA.js ``` javascript -{{js/pageA.js}} +{{dist/pageA.js}} ``` # Info diff --git a/examples/two-explicit-vendor-chunks/webpack.config.js b/examples/two-explicit-vendor-chunks/webpack.config.js index 9f521b01f..591a18836 100644 --- a/examples/two-explicit-vendor-chunks/webpack.config.js +++ b/examples/two-explicit-vendor-chunks/webpack.config.js @@ -10,7 +10,7 @@ module.exports = { pageC: "./pageC" }, output: { - path: path.join(__dirname, "js"), + path: path.join(__dirname, "dist"), filename: "[name].js" }, plugins: [ diff --git a/examples/wasm-simple/README.md b/examples/wasm-simple/README.md index c6300d8b1..3a1f0ed9a 100644 --- a/examples/wasm-simple/README.md +++ b/examples/wasm-simple/README.md @@ -53,7 +53,7 @@ export function fibonacciJavascript(i) { } ``` -# js/output.js +# dist/output.js
/******/ (function(modules) { /* webpackBootstrap */ }) @@ -234,7 +234,7 @@ export function fibonacciJavascript(i) { /******/ __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); }; /******/ /******/ // __webpack_public_path__ -/******/ __webpack_require__.p = "js/"; +/******/ __webpack_require__.p = "dist/"; /******/ /******/ // on error function for async loading /******/ __webpack_require__.oe = function(err) { console.error(err); throw err; }; @@ -297,7 +297,7 @@ function timed(name, fn) { /******/ ]); ``` -# js/0.output.js +# dist/0.output.js ``` javascript (window["webpackJsonp"] = window["webpackJsonp"] || []).push([[0],[ @@ -394,7 +394,7 @@ module.exports = instance.exports; ]]); ``` -# js/1.output.js +# dist/1.output.js ``` javascript (window["webpackJsonp"] = window["webpackJsonp"] || []).push([[1],[ @@ -432,7 +432,7 @@ f0e32231f1b550e31977.wasm 41 bytes 0, 1 [emitted] 9838c03e7003e6f2ef03.wasm 67 bytes 0 [emitted] c1d1c6ab574f5b4f065d.wasm 62 bytes 0 [emitted] 1.output.js 461 bytes 1 [emitted] - output.js 8.87 KiB 2 [emitted] main + output.js 8.88 KiB 2 [emitted] main Entrypoint main = output.js chunk {0} 0.output.js, f0e32231f1b550e31977.wasm, 9838c03e7003e6f2ef03.wasm, c1d1c6ab574f5b4f065d.wasm 585 bytes {2} [rendered] > [0] ./example.js 3:1-17 diff --git a/examples/wasm-simple/template.md b/examples/wasm-simple/template.md index 5bccd7b57..882ae2267 100644 --- a/examples/wasm-simple/template.md +++ b/examples/wasm-simple/template.md @@ -14,22 +14,22 @@ WebAssembly modules can be imported like other modules. Their download and compi {{math.js}} ``` -# js/output.js +# dist/output.js ``` javascript -{{js/output.js}} +{{dist/output.js}} ``` -# js/0.output.js +# dist/0.output.js ``` javascript -{{js/0.output.js}} +{{dist/0.output.js}} ``` -# js/1.output.js +# dist/1.output.js ``` javascript -{{js/1.output.js}} +{{dist/1.output.js}} ``` # Info diff --git a/examples/web-worker/README.md b/examples/web-worker/README.md index 4b6041766..f359c00e5 100644 --- a/examples/web-worker/README.md +++ b/examples/web-worker/README.md @@ -21,7 +21,7 @@ onmessage = function(event) { } ``` -# js/output.js +# dist/output.js
/******/ (function(modules) { /* webpackBootstrap */ }) @@ -90,7 +90,7 @@ onmessage = function(event) { /******/ __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); }; /******/ /******/ // __webpack_public_path__ -/******/ __webpack_require__.p = "js/"; +/******/ __webpack_require__.p = "dist/"; /******/ /******/ // Load entry module and return exports /******/ return __webpack_require__(__webpack_require__.s = 1); @@ -133,7 +133,7 @@ worker.onmessage = function(event) { /******/ ]); ``` -# js/[hash].worker.js +# dist/[hash].worker.js ``` javascript /******/ (function(modules) { // webpackBootstrap @@ -226,7 +226,7 @@ worker.onmessage = function(event) { /******/ __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); }; /******/ /******/ // __webpack_public_path__ -/******/ __webpack_require__.p = "js/"; +/******/ __webpack_require__.p = "dist/"; /******/ /******/ // Load entry module and return exports /******/ return __webpack_require__(__webpack_require__.s = 0); @@ -252,7 +252,7 @@ onmessage = function(event) { /******/ ]); ``` -# js/0.[hash].worker.js +# dist/0.[hash].worker.js ``` javascript window["webpackChunk"]([0],[ @@ -384,8 +384,8 @@ Hash: 0a1b2c3d4e5f6a7b8c9d Version: webpack next Asset Size Chunks Chunk Names 0.hash.worker.js 594 bytes [emitted] - hash.worker.js 917 bytes [emitted] - output.js 695 bytes 0 [emitted] main + hash.worker.js 919 bytes [emitted] + output.js 697 bytes 0 [emitted] main Entrypoint main = output.js chunk {0} output.js (main) 332 bytes [entry] [rendered] > main [1] ./example.js @@ -396,7 +396,7 @@ chunk {0} output.js (main) 332 bytes [entry] [rendered] Child worker: Asset Size Chunks Chunk Names 0.hash.worker.js 594 bytes 0 [emitted] - hash.worker.js 917 bytes 1 [emitted] main + hash.worker.js 919 bytes 1 [emitted] main Entrypoint main = hash.worker.js chunk {0} 0.hash.worker.js 463 bytes {1} [rendered] > [0] ./worker.js 3:1-5:3 diff --git a/examples/web-worker/template.md b/examples/web-worker/template.md index a204e7191..40477fbd0 100644 --- a/examples/web-worker/template.md +++ b/examples/web-worker/template.md @@ -11,22 +11,22 @@ {{worker.js}} ``` -# js/output.js +# dist/output.js ``` javascript -{{js/output.js}} +{{dist/output.js}} ``` -# js/[hash].worker.js +# dist/[hash].worker.js ``` javascript -{{js/hash.worker.js}} +{{dist/hash.worker.js}} ``` -# js/0.[hash].worker.js +# dist/0.[hash].worker.js ``` javascript -{{js/0.hash.worker.js}} +{{dist/0.hash.worker.js}} ``` # Info