Skip to content

Commit b5b92dc

Browse files
committed
update example
1 parent bdd5d3d commit b5b92dc

File tree

1 file changed

+22
-22
lines changed

1 file changed

+22
-22
lines changed

examples/css/README.md

Lines changed: 22 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -181,17 +181,18 @@ module.exports = __webpack_require__.p + "89a353e9c515885abd8e.png";
181181
/******/ // [resolve, reject, Promise] = chunk loading, 0 = chunk loaded
182182
/******/ var installedChunks = {};
183183
/******/
184+
/******/ var uniqueName = "app";
184185
/******/ var loadCssChunkData = (chunkId, link) => {
185186
/******/ var data, token = "", token2, exports = {}, exportsWithId = [], i = 0, cc = 1;
186187
/******/ try { if(!link) link = loadStylesheet(chunkId); data = link.sheet.cssRules; data = data[data.length - 1].style; } catch(e) { data = getComputedStyle(document.head); }
187-
/******/ data = data.getPropertyValue("--webpack-" + chunkId);
188+
/******/ data = data.getPropertyValue("--webpack-" + uniqueName + "-" + chunkId);
188189
/******/ if(!data) return;
189190
/******/ for(; cc; i++) {
190191
/******/ cc = data.charCodeAt(i);
191192
/******/ if(cc == 40) { token2 = token; token = ""; }
192193
/******/ else if(cc == 41) { exports[token2.replace(/^_/, "")] = token.replace(/^_/, ""); token = ""; }
193-
/******/ else if(cc == 47) { token = token.replace(/^_/, ""); exports[token] = token + "_"; exportsWithId.push(token); token = ""; }
194-
/******/ else if(!cc || cc == 44) { token = token.replace(/^_/, ""); exportsWithId.forEach((x) => (exports[x] += token)); __webpack_require__.r(exports); __webpack_require__.m[token] = ((exports, module) => {
194+
/******/ else if(cc == 47) { token = token.replace(/^_/, ""); exports[token] = token; exportsWithId.push(token); token = ""; }
195+
/******/ else if(!cc || cc == 44) { token = token.replace(/^_/, ""); exportsWithId.forEach((x) => (exports[x] = uniqueName + "-" + token + "-" + exports[x])); __webpack_require__.r(exports); __webpack_require__.m[token] = ((exports, module) => {
195196
/******/ module.exports = exports;
196197
/******/ }).bind(null, exports); token = ""; exports = {}; exportsWithId.length = 0; }
197198
/******/ else if(cc == 92) { token += data[++i] }
@@ -200,21 +201,20 @@ module.exports = __webpack_require__.p + "89a353e9c515885abd8e.png";
200201
/******/ installedChunks[chunkId] = 0;
201202
/******/ }
202203
/******/ var loadingAttribute = "data-webpack-loading";
203-
/******/ var dataWebpackPrefix = "app:";
204204
/******/ var loadStylesheet = (chunkId, url, done) => {
205205
/******/ var link, needAttach, key = "chunk-" + chunkId;
206206
/******/
207207
/******/ var links = document.getElementsByTagName("link");
208208
/******/ for(var i = 0; i < links.length; i++) {
209209
/******/ var l = links[i];
210-
/******/ if(l.getAttribute("href") == url || l.getAttribute("data-webpack") == dataWebpackPrefix + key) { link = l; break; }
210+
/******/ if(l.getAttribute("href") == url || l.getAttribute("data-webpack") == uniqueName + ":" + key) { link = l; break; }
211211
/******/ }
212212
/******/ if(!url) return link;
213213
/******/
214214
/******/ if(!link) {
215215
/******/ needAttach = true;
216216
/******/ link = document.createElement('link');
217-
/******/ link.setAttribute("data-webpack", dataWebpackPrefix + key);
217+
/******/ link.setAttribute("data-webpack", uniqueName + ":" + key);
218218
/******/ link.setAttribute(loadingAttribute, 1);
219219
/******/ link.rel = "stylesheet";
220220
/******/
@@ -427,12 +427,12 @@ body {
427427
background: red;
428428
}
429429

430-
.main_6 {
430+
.app-6-main {
431431
font-size: large;
432432
color: darkblue;
433433
}
434434

435-
head{--webpack-0:_4,_2,_1,_5,main/_6;}
435+
head{--webpack-app-0:_4,_2,_1,_5,main/_6;}
436436
```
437437

438438
# dist/1.output.css
@@ -442,23 +442,23 @@ body {
442442
color: blue;
443443
}
444444

445-
head{--webpack-1:_7;}
445+
head{--webpack-app-1:_7;}
446446
```
447447

448448
# Info
449449

450450
## Unoptimized
451451

452452
```
453-
assets by chunk 16.5 KiB (name: main)
453+
assets by chunk 16.6 KiB (name: main)
454454
asset output.js 16.2 KiB [emitted] (name: main)
455-
asset 0.output.css 325 bytes [emitted] (name: main)
455+
asset 0.output.css 333 bytes [emitted] (name: main)
456456
asset 89a353e9c515885abd8e.png 14.6 KiB [emitted] [immutable] [from: images/file.png] (auxiliary name: main)
457-
asset 1.output.css 45 bytes [emitted]
458-
Entrypoint main 16.5 KiB (14.6 KiB) = output.js 16.2 KiB 0.output.css 325 bytes 1 auxiliary asset
459-
chunk (runtime: main) output.js, 0.output.css (main) 218 bytes (javascript) 301 bytes (css) 14.6 KiB (asset) 42 bytes (css-import) 9.76 KiB (runtime) [entry] [rendered]
457+
asset 1.output.css 49 bytes [emitted]
458+
Entrypoint main 16.6 KiB (14.6 KiB) = output.js 16.2 KiB 0.output.css 333 bytes 1 auxiliary asset
459+
chunk (runtime: main) output.js, 0.output.css (main) 218 bytes (javascript) 301 bytes (css) 14.6 KiB (asset) 42 bytes (css-import) 9.8 KiB (runtime) [entry] [rendered]
460460
> ./example.js main
461-
runtime modules 9.76 KiB 9 modules
461+
runtime modules 9.8 KiB 9 modules
462462
dependent modules 42 bytes (javascript) 14.6 KiB (asset) 301 bytes (css) 42 bytes (css-import) [dependent] 6 modules
463463
./example.js 176 bytes [built] [code generated]
464464
[no exports]
@@ -476,20 +476,20 @@ webpack 5.64.4 compiled successfully
476476
## Production mode
477477

478478
```
479-
assets by chunk 4.08 KiB (name: main)
480-
asset output.js 3.76 KiB [emitted] [minimized] (name: main)
481-
asset 179.output.css 333 bytes [emitted] (name: main)
479+
assets by chunk 4.1 KiB (name: main)
480+
asset output.js 3.77 KiB [emitted] [minimized] (name: main)
481+
asset 179.output.css 341 bytes [emitted] (name: main)
482482
asset 89a353e9c515885abd8e.png 14.6 KiB [emitted] [immutable] [from: images/file.png] (auxiliary name: main)
483-
asset 159.output.css 49 bytes [emitted]
484-
Entrypoint main 4.08 KiB (14.6 KiB) = output.js 3.76 KiB 179.output.css 333 bytes 1 auxiliary asset
483+
asset 159.output.css 53 bytes [emitted]
484+
Entrypoint main 4.1 KiB (14.6 KiB) = output.js 3.77 KiB 179.output.css 341 bytes 1 auxiliary asset
485485
chunk (runtime: main) 159.output.css 23 bytes
486486
> ./lazy-style.css ./example.js 4:0-26
487487
./lazy-style.css 23 bytes [built] [code generated]
488488
[no exports]
489489
import() ./lazy-style.css ./example.js 4:0-26
490-
chunk (runtime: main) output.js, 179.output.css (main) 218 bytes (javascript) 301 bytes (css) 14.6 KiB (asset) 42 bytes (css-import) 9.76 KiB (runtime) [entry] [rendered]
490+
chunk (runtime: main) output.js, 179.output.css (main) 218 bytes (javascript) 301 bytes (css) 14.6 KiB (asset) 42 bytes (css-import) 9.8 KiB (runtime) [entry] [rendered]
491491
> ./example.js main
492-
runtime modules 9.76 KiB 9 modules
492+
runtime modules 9.8 KiB 9 modules
493493
dependent modules 42 bytes (javascript) 14.6 KiB (asset) 301 bytes (css) 42 bytes (css-import) [dependent] 6 modules
494494
./example.js 176 bytes [built] [code generated]
495495
[no exports]

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy