Skip to content

Commit bc7725c

Browse files
committed
change output from examples for js/ to dist/
1 parent 273f147 commit bc7725c

File tree

117 files changed

+578
-578
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

117 files changed

+578
-578
lines changed

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
/test/fixtures/temp-cache-fixture
55
/benchmark/js
66
/benchmark/fixtures
7-
/examples/**/js
7+
/examples/**/dist
88
/coverage
99
.DS_Store
1010
*.log

examples/aggressive-merging/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ module.exports = {
3939
pageC: "./pageC"
4040
},
4141
output: {
42-
path: path.join(__dirname, "js"),
42+
path: path.join(__dirname, "dist"),
4343
filename: "[name].bundle.js",
4444
chunkFilename: "[id].chunk.js"
4545
},

examples/aggressive-merging/webpack.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ module.exports = {
88
pageC: "./pageC"
99
},
1010
output: {
11-
path: path.join(__dirname, "js"),
11+
path: path.join(__dirname, "dist"),
1212
filename: "[name].bundle.js",
1313
chunkFilename: "[id].chunk.js"
1414
},

examples/build-common.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,9 @@ const async = require("async");
1212

1313
const extraArgs = "";
1414

15-
const targetArgs = global.NO_TARGET_ARGS ? "" : " ./example.js -o js/output.js ";
15+
const targetArgs = global.NO_TARGET_ARGS ? "" : " ./example.js -o dist/output.js ";
1616
const displayReasons = global.NO_REASONS ? "" : " --display-reasons --display-used-exports --display-provided-exports";
17-
const commonArgs = `--display-chunks --display-max-modules 99999 --display-origins --display-entrypoints --output-public-path "js/" ${extraArgs} ${targetArgs}`;
17+
const commonArgs = `--display-chunks --display-max-modules 99999 --display-origins --display-entrypoints --output-public-path "dist/" ${extraArgs} ${targetArgs}`;
1818

1919
let readme = fs.readFileSync(require("path").join(process.cwd(), "template.md"), "utf-8");
2020

@@ -23,9 +23,9 @@ const doCompileAndReplace = (args, prefix, callback) => {
2323
callback();
2424
return;
2525
}
26-
if(fs.existsSync("js"))
27-
for(const file of fs.readdirSync("js"))
28-
fs.unlinkSync(`js/${file}`);
26+
if(fs.existsSync("dist"))
27+
for(const file of fs.readdirSync("dist"))
28+
fs.unlinkSync(`dist/${file}`);
2929
cp.exec(`node ${path.resolve(__dirname, "../bin/webpack.js")} ${args} ${displayReasons} ${commonArgs}`, (error, stdout, stderr) => {
3030
if(stderr)
3131
console.log(stderr);

examples/chunkhash/README.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ module.exports = {
3636
common: ["./vendor"] // optional
3737
},
3838
output: {
39-
path: path.join(__dirname, "js"),
39+
path: path.join(__dirname, "dist"),
4040
filename: "[name].[chunkhash].js",
4141
chunkFilename: "[chunkhash].js"
4242
},
@@ -63,19 +63,19 @@ module.exports = {
6363

6464
<!-- inlined minimized file "manifest.[chunkhash].js" -->
6565
<script>
66-
!function(e){function r(r){for(var n,u,i,s=r[0],l=r[1],p=r[2],f=0,d=[];f<s.length;f++)u=s[f],o[u]&&d.push(o[u][0]),o[u]=0;for(n in l)Object.prototype.hasOwnProperty.call(l,n)&&(e[n]=l[n]);for(c&&c(r);d.length;)d.shift()();for(a.push.apply(a,p||[]),f=0;f<a.length;f++){for(var h=a[f],v=!0,g=1;g<h.length;g++){var m=h[g];0!==o[m]&&(v=!1)}v&&(a.splice(f--,1),i=t(t.s=h[0]))}return i}function t(r){if(n[r])return n[r].exports;var o=n[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,t),o.l=!0,o.exports}var n={},o={4:0},a=[];t.e=function(e){var r=[],n=o[e];if(0!==n)if(n)r.push(n[2]);else{var a=new Promise(function(r,t){n=o[e]=[r,t]});r.push(n[2]=a);var u=document.getElementsByTagName("head")[0],c=document.createElement("script");c.charset="utf-8",c.timeout=12e4,t.nc&&c.setAttribute("nonce",t.nc),c.src=t.p+""+{0:"19a84e789378731c8460",1:"4f0e85908244254bb448",2:"b94c93d31c5a9a6a8fe7",3:"59214344cd83683ae9d1"}[e]+".js";var i=setTimeout(function(){s({type:"timeout",target:c})},12e4);c.onerror=c.onload=s;function s(r){c.onerror=c.onload=null,clearTimeout(i);var t=o[e];if(0!==t){if(t){var n=r&&("load"===r.type?"missing":r.type),a=r&&r.target&&r.target.src,u=new Error("Loading chunk "+e+" failed.\n("+n+": "+a+")");u.type=n,u.request=a,t[1](u)}o[e]=void 0}}u.appendChild(c)}return Promise.all(r)},t.m=e,t.c=n,t.d=function(e,r,n){t.o(e,r)||Object.defineProperty(e,r,{configurable:!1,enumerable:!0,get:n})},t.r=function(e){Object.defineProperty(e,"__esModule",{value:!0})},t.n=function(e){var r=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(r,"a",r),r},t.o=function(e,r){return Object.prototype.hasOwnProperty.call(e,r)},t.p="js/",t.oe=function(e){throw console.error(e),e};var u=window.webpackJsonp=window.webpackJsonp||[],c=u.push.bind(u);u.push=r,u=u.slice();for(var i=0;i<u.length;i++)r(u[i])}([]);
66+
!function(e){function r(r){for(var n,i,c,s=r[0],l=r[1],p=r[2],f=0,d=[];f<s.length;f++)i=s[f],o[i]&&d.push(o[i][0]),o[i]=0;for(n in l)Object.prototype.hasOwnProperty.call(l,n)&&(e[n]=l[n]);for(u&&u(r);d.length;)d.shift()();for(a.push.apply(a,p||[]),f=0;f<a.length;f++){for(var h=a[f],v=!0,g=1;g<h.length;g++){var m=h[g];0!==o[m]&&(v=!1)}v&&(a.splice(f--,1),c=t(t.s=h[0]))}return c}function t(r){if(n[r])return n[r].exports;var o=n[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,t),o.l=!0,o.exports}var n={},o={4:0},a=[];t.e=function(e){var r=[],n=o[e];if(0!==n)if(n)r.push(n[2]);else{var a=new Promise(function(r,t){n=o[e]=[r,t]});r.push(n[2]=a);var i=document.getElementsByTagName("head")[0],u=document.createElement("script");u.charset="utf-8",u.timeout=12e4,t.nc&&u.setAttribute("nonce",t.nc),u.src=t.p+""+{0:"19a84e789378731c8460",1:"4f0e85908244254bb448",2:"b94c93d31c5a9a6a8fe7",3:"59214344cd83683ae9d1"}[e]+".js";var c=setTimeout(function(){s({type:"timeout",target:u})},12e4);u.onerror=u.onload=s;function s(r){u.onerror=u.onload=null,clearTimeout(c);var t=o[e];if(0!==t){if(t){var n=r&&("load"===r.type?"missing":r.type),a=r&&r.target&&r.target.src,i=new Error("Loading chunk "+e+" failed.\n("+n+": "+a+")");i.type=n,i.request=a,t[1](i)}o[e]=void 0}}i.appendChild(u)}return Promise.all(r)},t.m=e,t.c=n,t.d=function(e,r,n){t.o(e,r)||Object.defineProperty(e,r,{configurable:!1,enumerable:!0,get:n})},t.r=function(e){Object.defineProperty(e,"__esModule",{value:!0})},t.n=function(e){var r=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(r,"a",r),r},t.o=function(e,r){return Object.prototype.hasOwnProperty.call(e,r)},t.p="dist/",t.oe=function(e){throw console.error(e),e};var i=window.webpackJsonp=window.webpackJsonp||[],u=i.push.bind(i);i.push=r,i=i.slice();for(var c=0;c<i.length;c++)r(i[c])}([]);
6767
</script>
6868

6969
<!-- optional when using the CommonChunkPlugin for vendor modules -->
70-
<script src="js/common.[chunkhash].js"></script>
70+
<script src="dist/common.[chunkhash].js"></script>
7171

72-
<script src="js/main.[chunkhash].js"></script>
72+
<script src="dist/main.[chunkhash].js"></script>
7373

7474
</body>
7575
</html>
7676
```
7777

78-
# js/common.[chunkhash].js
78+
# dist/common.[chunkhash].js
7979

8080
``` javascript
8181
(window["webpackJsonp"] = window["webpackJsonp"] || []).push([[1],[
@@ -110,7 +110,7 @@ module.exports = __webpack_require__(/*! ./vendor */1);
110110
],[[4,4,1]]]);
111111
```
112112

113-
# js/main.[chunkhash].js
113+
# dist/main.[chunkhash].js
114114

115115
``` javascript
116116
(window["webpackJsonp"] = window["webpackJsonp"] || []).push([[0],[
@@ -146,7 +146,7 @@ Version: webpack next
146146
common.[chunkhash].js 727 bytes 1 [emitted] common
147147
b71c088662b7b530c545.js 264 bytes 2 [emitted]
148148
f6eb6a4d15b19e593a54.js 264 bytes 3 [emitted]
149-
manifest.[chunkhash].js 7.15 KiB 4 [emitted] manifest
149+
manifest.[chunkhash].js 7.16 KiB 4 [emitted] manifest
150150
Entrypoint main = manifest.[chunkhash].js common.[chunkhash].js main.[chunkhash].js
151151
Entrypoint common = manifest.[chunkhash].js common.[chunkhash].js
152152
chunk {0} main.[chunkhash].js (main) 90 bytes {1} [initial] [rendered]

examples/chunkhash/template.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -36,28 +36,28 @@ The configuration required for this is:
3636

3737
<!-- inlined minimized file "manifest.[chunkhash].js" -->
3838
<script>
39-
{{production:js/manifest.chunkhash.js}}
39+
{{production:dist/manifest.chunkhash.js}}
4040
</script>
4141

4242
<!-- optional when using the CommonChunkPlugin for vendor modules -->
43-
<script src="js/common.[chunkhash].js"></script>
43+
<script src="dist/common.[chunkhash].js"></script>
4444

45-
<script src="js/main.[chunkhash].js"></script>
45+
<script src="dist/main.[chunkhash].js"></script>
4646

4747
</body>
4848
</html>
4949
```
5050

51-
# js/common.[chunkhash].js
51+
# dist/common.[chunkhash].js
5252

5353
``` javascript
54-
{{js/common.chunkhash.js}}
54+
{{dist/common.chunkhash.js}}
5555
```
5656

57-
# js/main.[chunkhash].js
57+
# dist/main.[chunkhash].js
5858

5959
``` javascript
60-
{{js/main.chunkhash.js}}
60+
{{dist/main.chunkhash.js}}
6161
```
6262

6363
# Info

examples/chunkhash/webpack.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ module.exports = {
77
common: ["./vendor"] // optional
88
},
99
output: {
10-
path: path.join(__dirname, "js"),
10+
path: path.join(__dirname, "dist"),
1111
filename: "[name].chunkhash.js",
1212
chunkFilename: "[chunkhash].js"
1313
},

examples/code-splitted-css-bundle/README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -62,11 +62,11 @@ module.exports = {
6262
};
6363
```
6464

65-
# js/style.css
65+
# dist/style.css
6666

6767
``` javascript
6868
body {
69-
background: url(js/ce21cbdd9b894e6af794813eb3fdaf60.png);
69+
background: url(dist/ce21cbdd9b894e6af794813eb3fdaf60.png);
7070
}
7171
```
7272

@@ -81,7 +81,7 @@ Version: webpack next
8181
ce21cbdd9b894e6af794813eb3fdaf60.png 119 bytes [emitted]
8282
0.output.js 2.33 KiB 0 [emitted]
8383
output.js 22.4 KiB 1 [emitted] main
84-
style.css 71 bytes 1 [emitted] main
84+
style.css 73 bytes 1 [emitted] main
8585
Entrypoint main = output.js style.css
8686
chunk {0} 0.output.js 1.34 KiB {1} [rendered]
8787
> [1] ./example.js 2:0-20
@@ -120,7 +120,7 @@ Version: webpack next
120120
ce21cbdd9b894e6af794813eb3fdaf60.png 119 bytes [emitted]
121121
0.output.js 403 bytes 0 [emitted]
122122
output.js 7.04 KiB 1 [emitted] main
123-
style.css 71 bytes 1 [emitted] main
123+
style.css 73 bytes 1 [emitted] main
124124
Entrypoint main = output.js style.css
125125
chunk {0} 0.output.js 1.34 KiB {1} [rendered]
126126
> [1] ./example.js 2:0-20

examples/code-splitted-css-bundle/template.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,10 +29,10 @@
2929
{{webpack.config.js}}
3030
```
3131

32-
# js/style.css
32+
# dist/style.css
3333

3434
``` javascript
35-
{{js/style.css}}
35+
{{dist/style.css}}
3636
```
3737

3838
# Info

examples/code-splitted-require.context-amd/README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ getTemplate("b", function(b) {
1414
});
1515
```
1616

17-
# js/output.js
17+
# dist/output.js
1818

1919
<details><summary><code>/******/ (function(modules) { /* webpackBootstrap */ })</code></summary>
2020

@@ -173,7 +173,7 @@ getTemplate("b", function(b) {
173173
/******/ __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };
174174
/******/
175175
/******/ // __webpack_public_path__
176-
/******/ __webpack_require__.p = "js/";
176+
/******/ __webpack_require__.p = "dist/";
177177
/******/
178178
/******/ // on error function for async loading
179179
/******/ __webpack_require__.oe = function(err) { console.error(err); throw err; };
@@ -217,7 +217,7 @@ getTemplate("b", function(b) {
217217
/******/ ]);
218218
```
219219

220-
# js/0.output.js
220+
# dist/0.output.js
221221

222222
``` javascript
223223
(window["webpackJsonp"] = window["webpackJsonp"] || []).push([[0],[

examples/code-splitted-require.context-amd/template.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,16 +4,16 @@
44
{{example.js}}
55
```
66

7-
# js/output.js
7+
# dist/output.js
88

99
``` javascript
10-
{{js/output.js}}
10+
{{dist/output.js}}
1111
```
1212

13-
# js/0.output.js
13+
# dist/0.output.js
1414

1515
``` javascript
16-
{{js/0.output.js}}
16+
{{dist/0.output.js}}
1717
```
1818

1919
# Info

examples/code-splitted-require.context/README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ getTemplate("b", function(b) {
1414
});
1515
```
1616

17-
# js/output.js
17+
# dist/output.js
1818

1919
<details><summary><code>/******/ (function(modules) { /* webpackBootstrap */ })</code></summary>
2020

@@ -173,7 +173,7 @@ getTemplate("b", function(b) {
173173
/******/ __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };
174174
/******/
175175
/******/ // __webpack_public_path__
176-
/******/ __webpack_require__.p = "js/";
176+
/******/ __webpack_require__.p = "dist/";
177177
/******/
178178
/******/ // on error function for async loading
179179
/******/ __webpack_require__.oe = function(err) { console.error(err); throw err; };
@@ -217,7 +217,7 @@ getTemplate("b", function(b) {
217217
/******/ ]);
218218
```
219219

220-
# js/0.output.js
220+
# dist/0.output.js
221221

222222
``` javascript
223223
(window["webpackJsonp"] = window["webpackJsonp"] || []).push([[0],[

examples/code-splitted-require.context/template.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,16 +4,16 @@
44
{{example.js}}
55
```
66

7-
# js/output.js
7+
# dist/output.js
88

99
``` javascript
10-
{{js/output.js}}
10+
{{dist/output.js}}
1111
```
1212

13-
# js/0.output.js
13+
# dist/0.output.js
1414

1515
``` javascript
16-
{{js/0.output.js}}
16+
{{dist/0.output.js}}
1717
```
1818

1919
# Info

examples/code-splitting-bundle-loader/README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ module.exports = "It works";
1717
```
1818

1919

20-
# js/output.js
20+
# dist/output.js
2121

2222
<details><summary><code>/******/ (function(modules) { /* webpackBootstrap */ })</code></summary>
2323

@@ -176,7 +176,7 @@ module.exports = "It works";
176176
/******/ __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };
177177
/******/
178178
/******/ // __webpack_public_path__
179-
/******/ __webpack_require__.p = "js/";
179+
/******/ __webpack_require__.p = "dist/";
180180
/******/
181181
/******/ // on error function for async loading
182182
/******/ __webpack_require__.oe = function(err) { console.error(err); throw err; };
@@ -236,7 +236,7 @@ __webpack_require__(/*! bundle-loader!./file.js */ 0)(function(fileJsExports) {
236236
/******/ ]);
237237
```
238238

239-
# js/0.output.js
239+
# dist/0.output.js
240240

241241
``` javascript
242242
(window["webpackJsonp"] = window["webpackJsonp"] || []).push([[0],{
@@ -285,7 +285,7 @@ Hash: 0a1b2c3d4e5f6a7b8c9d
285285
Version: webpack next
286286
Asset Size Chunks Chunk Names
287287
0.output.js 98 bytes 0 [emitted]
288-
output.js 1.78 KiB 1 [emitted] main
288+
output.js 1.79 KiB 1 [emitted] main
289289
Entrypoint main = output.js
290290
chunk {0} 0.output.js 28 bytes {1} [rendered]
291291
> [0] (webpack)/node_modules/bundle-loader!./file.js 7:0-14:2

examples/code-splitting-bundle-loader/template.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,16 +15,16 @@ The bundle loader is used to create a wrapper module for `file.js` that loads th
1515
```
1616

1717

18-
# js/output.js
18+
# dist/output.js
1919

2020
``` javascript
21-
{{js/output.js}}
21+
{{dist/output.js}}
2222
```
2323

24-
# js/0.output.js
24+
# dist/0.output.js
2525

2626
``` javascript
27-
{{js/0.output.js}}
27+
{{dist/0.output.js}}
2828
```
2929

3030
# Info

examples/code-splitting-harmony/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ Promise.all([loadC("1"), loadC("2")]).then(function(arr) {
2525
```
2626

2727

28-
# js/output.js
28+
# dist/output.js
2929

3030
<details><summary><code>/******/ (function(modules) { /* webpackBootstrap */ })</code></summary>
3131

@@ -184,7 +184,7 @@ Promise.all([loadC("1"), loadC("2")]).then(function(arr) {
184184
/******/ __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };
185185
/******/
186186
/******/ // __webpack_public_path__
187-
/******/ __webpack_require__.p = "js/";
187+
/******/ __webpack_require__.p = "dist/";
188188
/******/
189189
/******/ // on error function for async loading
190190
/******/ __webpack_require__.oe = function(err) { console.error(err); throw err; };

examples/code-splitting-harmony/template.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,10 @@ Providing dynamic expressions to `import` is possible. The same limits as with d
1313
```
1414

1515

16-
# js/output.js
16+
# dist/output.js
1717

1818
``` javascript
19-
{{js/output.js}}
19+
{{dist/output.js}}
2020
```
2121

2222

0 commit comments

Comments
 (0)