2020-05-21 05:26:51 +08:00
A common challenge with combining `[chunkhash]` and Code Splitting is that the entry chunk includes the webpack runtime and with it the chunkhash mappings. This means it's always updated and the `[chunkhash]` is pretty useless because this chunk won't be cached.
2015-11-21 04:36:43 +08:00
2020-05-21 05:26:51 +08:00
A very simple solution to this problem is to create another chunk that contains only the webpack runtime (including chunkhash map). This can be achieved with `optimization.runtimeChunk` options. To avoid the additional request for another chunk, this pretty small chunk can be inlined into the HTML page.
2015-11-21 04:36:43 +08:00
The configuration required for this is:
2019-04-09 02:29:40 +08:00
- use `[chunkhash]` in `output.filename` (Note that this example doesn't do this because of the example generator infrastructure, but you should)
- use `[chunkhash]` in `output.chunkFilename` (Note that this example doesn't do this because of the example generator infrastructure, but you should)
2015-11-21 04:36:43 +08:00
# example.js
2019-04-09 02:29:40 +08:00
```javascript
2015-11-21 04:36:43 +08:00
// some module
2017-02-13 15:49:35 +08:00
import("./async1");
import("./async2");
2015-11-21 04:36:43 +08:00
```
# webpack.config.js
2019-04-09 02:29:40 +08:00
```javascript
2015-11-21 04:36:43 +08:00
var path = require("path");
module.exports = {
2017-12-14 17:58:03 +08:00
// mode: "development || "production",
2015-11-21 04:36:43 +08:00
entry: {
2018-01-20 00:06:59 +08:00
main: "./example"
},
optimization: {
runtimeChunk: true
2015-11-21 04:36:43 +08:00
},
output: {
2018-01-05 04:39:29 +08:00
path: path.join(__dirname, "dist"),
2017-04-04 16:48:59 +08:00
filename: "[name].[chunkhash].js",
2018-01-20 00:06:59 +08:00
chunkFilename: "[name].[chunkhash].js"
}
2015-11-21 04:36:43 +08:00
};
```
# index.html
2019-04-09 02:29:40 +08:00
```html
2015-11-21 04:36:43 +08:00
< html >
2019-04-09 02:29:40 +08:00
< head > < / head >
< body >
<!-- inlined minimized file "runtime~main.[chunkhash].js" -->
< script >
2020-05-21 05:26:51 +08:00
(()=>{"use strict";var e={},r={};function t(o){if(r[o])return r[o].exports;var n=r[o]={exports:{}};return e[o](n,n.exports,t),n.exports}t.m=e,t.t=function(e,r){if(1& r&& (e=this(e)),8& r)return e;if(4& r&& "object"==typeof e&& e&& e.__esModule)return e;var o=Object.create(null);t.r(o);var n={};if(2& r&& "object"==typeof e&& e)for(const r in e)n[r]=()=>e[r];return n.default=()=>e,t.d(o,n),o},t.d=(e,r)=>{for(var o in r)t.o(r,o)&& !t.o(e,o)&& Object.defineProperty(e,o,{enumerable:!0,get:r[o]})},t.f={},t.e=e=>Promise.all(Object.keys(t.f).reduce((r,o)=>(t.f[o](e,r),r),[])),t.u=e=>e+".[chunkhash].js",t.o=(e,r)=>Object.prototype.hasOwnProperty.call(e,r),t.r=e=>{"undefined"!=typeof Symbol&& Symbol.toStringTag&& Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},t.p="dist/",(()=>{var e={303:0},r=[];t.f.j=(r,o)=>{var n=t.o(e,r)?e[r]:void 0;if(0!==n)if(n)o.push(n[2]);else{var a=new Promise((t,o)=>{n=e[r]=[t,o]});o.push(n[2]=a);var i,u=t.p+t.u(r),s=document.createElement("script");s.charset="utf-8",s.timeout=120,t.nc&&s.setAttribute("nonce",t.nc),s.src=u; var f=new Error;i=o=>{i=()=>{},s.onerror=s.onload=null,clearTimeout(l);var a=(()=>{if(t.o(e,r)&& (0!==(n=e[r])&& (e[r]=void 0),n))return n[1]})();if(a){var u=o&&("load"===o.type?"missing":o.type),p=o&&o.target&&o.target.src; f.message="Loading chunk "+r+" failed.\n("+u+": "+p+")",f.name="ChunkLoadError",f.type=u,f.request=p,a(f)}};var l=setTimeout(()=>{i({type:"timeout",target:s})},12e4);s.onerror=s.onload=i,document.head.appendChild(s)}};var o=()=>{};function n(){for(var o,n=0;n< r.length ; n ++){ for ( var a = r[n],i=!0,u=1;u<a.length;u++){var s = a[u];0!==e[s]&&(i=!1)}i&&(r.splice(n--,1),o=t(t.s=a[0]))}return 0 = ==r.length&&(t.x(),t.x=()= > {}),o}function a(n){for(var a,i,u=n[0],f=n[1],l=n[2],p=n[3],c=0,d=[];c< u.length ; c ++) i = u[c],t.o(e,i)&&e[i]&&d.push(e[i][0]),e[i]=0;for(a in f ) t . o ( f , a )&&( t . m [ a ]= f [ a ]); for ( p && p ( t ), s && s ( n ); d . length ;) d . shift ()(); return l && r . push . apply ( r , l ), o ()} t . x = ()= > {t.x=()=>{},i=i.slice();for(var e=0;e< i.length ; e ++) a ( i [ e ]); return ( o = n)()};var i = window.webpackJsonp=window.webpackJsonp||[],u=i.push.bind(i);i.push=a;var s = u})(),t.x()})();
2019-04-09 02:29:40 +08:00
< / script >
2015-11-21 04:36:43 +08:00
2019-04-09 02:29:40 +08:00
< script src = "dist/main.[chunkhash].js" > < / script >
< / body >
2015-11-21 04:36:43 +08:00
< / html >
```
2018-02-10 22:09:46 +08:00
# dist/runtime~main.[chunkhash].js
2015-11-21 04:36:43 +08:00
2019-04-09 02:29:40 +08:00
```javascript
2019-10-11 05:11:05 +08:00
/******/ (() => { // webpackBootstrap
2018-12-19 21:05:17 +08:00
/******/ "use strict";
2019-10-11 05:11:05 +08:00
/******/ var __webpack_modules__ = ({});
2019-11-19 21:10:28 +08:00
```
< details > < summary > < code > /* webpack runtime code */< / code > < / summary >
``` js
2019-10-11 05:11:05 +08:00
/************************************************************************/
2018-01-20 00:06:59 +08:00
/******/ // The module cache
2019-10-11 05:11:05 +08:00
/******/ var __webpack_module_cache__ = {};
/******/
2018-01-20 00:06:59 +08:00
/******/ // The require function
/******/ function __webpack_require__ (moduleId) {
/******/ // Check if module is in cache
2019-10-11 05:11:05 +08:00
/******/ if(__webpack_module_cache__[moduleId]) {
/******/ return __webpack_module_cache__ [moduleId].exports;
2018-01-20 00:06:59 +08:00
/******/ }
/******/ // Create a new module (and put it into the cache)
2019-10-11 05:11:05 +08:00
/******/ var module = __webpack_module_cache__ [moduleId] = {
2020-05-21 05:26:51 +08:00
/******/ // no module.id needed
/******/ // no module.loaded needed
2018-01-20 00:06:59 +08:00
/******/ exports: {}
/******/ };
2019-10-11 05:11:05 +08:00
/******/
2018-01-20 00:06:59 +08:00
/******/ // Execute the module function
2019-10-11 05:11:05 +08:00
/******/ __webpack_modules__ [moduleId ](module, module.exports, __webpack_require__ );
/******/
2018-01-20 00:06:59 +08:00
/******/ // Return the exports of the module
/******/ return module.exports;
/******/ }
2019-10-11 05:11:05 +08:00
/******/
2018-12-19 21:05:17 +08:00
/******/ // expose the modules object (__webpack_modules__)
2019-10-11 05:11:05 +08:00
/******/ __webpack_require__ .m = __webpack_modules__ ;
/******/
2018-12-19 21:05:17 +08:00
/************************************************************************/
/******/ /* webpack/runtime/create fake namespace object */
2020-05-21 05:26:51 +08:00
/******/ (() => {
2018-12-19 21:05:17 +08:00
/******/ // create a fake namespace object
/******/ // mode & 1: value is a module id, require it
/******/ // mode & 2: merge all properties of value into the ns
/******/ // mode & 4: return value when already ns object
/******/ // mode & 8|1: behave like require
/******/ __webpack_require__ .t = function(value, mode) {
/******/ if(mode & 1) value = this(value);
/******/ if(mode & 8) return value;
/******/ if((mode & 4) & & typeof value === 'object' & & value & & value.__esModule) return value;
/******/ var ns = Object.create(null);
/******/ __webpack_require__ .r(ns);
2019-11-15 07:06:30 +08:00
/******/ var def = {};
/******/ if(mode & 2 & & typeof value == 'object' & & value) {
2019-10-09 05:45:47 +08:00
/******/ for(const key in value) def[key] = () => value[key];
/******/ }
2019-11-15 07:06:30 +08:00
/******/ def['default'] = () => value;
/******/ __webpack_require__ .d(ns, def);
2018-12-19 21:05:17 +08:00
/******/ return ns;
/******/ };
2020-05-21 05:26:51 +08:00
/******/ })();
2018-12-19 21:05:17 +08:00
/******/
2019-10-09 05:45:47 +08:00
/******/ /* webpack/runtime/define property getters */
2020-05-21 05:26:51 +08:00
/******/ (() => {
2019-10-09 05:45:47 +08:00
/******/ // define getter functions for harmony exports
/******/ __webpack_require__ .d = (exports, definition) => {
/******/ for(var key in definition) {
2020-05-21 05:26:51 +08:00
/******/ if(__webpack_require__.o(definition, key) & & !__webpack_require__.o(exports, key)) {
2019-10-09 05:45:47 +08:00
/******/ Object.defineProperty(exports, key, { enumerable: true, get: definition[key] });
/******/ }
2018-12-19 21:05:17 +08:00
/******/ }
/******/ };
2020-05-21 05:26:51 +08:00
/******/ })();
2018-12-19 21:05:17 +08:00
/******/
2019-11-15 07:06:30 +08:00
/******/ /* webpack/runtime/ensure chunk */
2020-05-21 05:26:51 +08:00
/******/ (() => {
2019-11-15 07:06:30 +08:00
/******/ __webpack_require__ .f = {};
/******/ // This file contains only the entry chunk.
/******/ // The chunk loading function for additional chunks
/******/ __webpack_require__ .e = (chunkId) => {
/******/ return Promise.all(Object.keys(__webpack_require__.f).reduce((promises, key) => {
/******/ __webpack_require__ .f[key](chunkId, promises);
/******/ return promises;
/******/ }, []));
/******/ };
2020-05-21 05:26:51 +08:00
/******/ })();
2019-11-15 07:06:30 +08:00
/******/
/******/ /* webpack/runtime/get javascript chunk filename */
2020-05-21 05:26:51 +08:00
/******/ (() => {
2019-11-15 07:06:30 +08:00
/******/ // This function allow to reference async chunks
/******/ __webpack_require__ .u = (chunkId) => {
/******/ // return url for filenames based on template
/******/ return "" + chunkId + ".[chunkhash].js";
/******/ };
2020-05-21 05:26:51 +08:00
/******/ })();
/******/
/******/ /* webpack/runtime/hasOwnProperty shorthand */
/******/ (() => {
/******/ __webpack_require__ .o = (obj, prop) => Object.prototype.hasOwnProperty.call(obj, prop)
/******/ })();
2019-11-15 07:06:30 +08:00
/******/
2018-12-19 21:05:17 +08:00
/******/ /* webpack/runtime/make namespace object */
2020-05-21 05:26:51 +08:00
/******/ (() => {
2018-12-19 21:05:17 +08:00
/******/ // define __esModule on exports
2019-10-09 05:45:47 +08:00
/******/ __webpack_require__ .r = (exports) => {
2018-12-19 21:05:17 +08:00
/******/ if(typeof Symbol !== 'undefined' & & Symbol.toStringTag) {
/******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
/******/ }
/******/ Object.defineProperty(exports, '__esModule', { value: true });
/******/ };
2020-05-21 05:26:51 +08:00
/******/ })();
2018-12-19 21:05:17 +08:00
/******/
/******/ /* webpack/runtime/publicPath */
2020-05-21 05:26:51 +08:00
/******/ (() => {
2018-12-19 21:05:17 +08:00
/******/ __webpack_require__ .p = "dist/";
2020-05-21 05:26:51 +08:00
/******/ })();
2018-12-19 21:05:17 +08:00
/******/
/******/ /* webpack/runtime/jsonp chunk loading */
2020-05-21 05:26:51 +08:00
/******/ (() => {
2018-12-19 21:05:17 +08:00
/******/ // object to store loaded and loading chunks
/******/ // undefined = chunk not loaded, null = chunk preloaded/prefetched
/******/ // Promise = chunk loading, 0 = chunk loaded
/******/ var installedChunks = {
/******/ 0: 0
/******/ };
/******/
/******/ var deferredModules = [
/******/
/******/ ];
2019-10-09 05:45:47 +08:00
/******/ __webpack_require__ .f.j = (chunkId, promises) => {
/******/ // JSONP chunk loading for javascript
2020-05-21 05:26:51 +08:00
/******/ var installedChunkData = __webpack_require__ .o(installedChunks, chunkId) ? installedChunks[chunkId] : undefined;
2019-10-09 05:45:47 +08:00
/******/ if(installedChunkData !== 0) { // 0 means "already installed".
2018-12-19 21:05:17 +08:00
/******/
2019-10-09 05:45:47 +08:00
/******/ // a Promise means "currently loading".
/******/ if(installedChunkData) {
/******/ promises.push(installedChunkData[2]);
/******/ } else {
/******/ if(true) { // all chunks have JS
/******/ // setup Promise in chunk cache
/******/ var promise = new Promise((resolve, reject) => {
/******/ installedChunkData = installedChunks[chunkId] = [resolve, reject];
/******/ });
/******/ promises.push(installedChunkData[2] = promise);
2018-12-19 21:05:17 +08:00
/******/
2019-10-09 05:45:47 +08:00
/******/ // start chunk loading
/******/ var url = __webpack_require__ .p + __webpack_require__ .u(chunkId);
/******/ var loadingEnded = () => {
2020-05-21 05:26:51 +08:00
/******/ if(__webpack_require__.o(installedChunks, chunkId)) {
2019-11-15 07:06:30 +08:00
/******/ installedChunkData = installedChunks[chunkId];
/******/ if(installedChunkData !== 0) installedChunks[chunkId] = undefined;
/******/ if(installedChunkData) return installedChunkData[1];
/******/ }
2019-10-09 05:45:47 +08:00
/******/ };
/******/ var script = document.createElement('script');
/******/ var onScriptComplete;
2019-08-05 19:32:25 +08:00
/******/
2019-10-09 05:45:47 +08:00
/******/ script.charset = 'utf-8';
/******/ script.timeout = 120;
/******/ if (__webpack_require__.nc) {
/******/ script.setAttribute("nonce", __webpack_require__ .nc);
2019-08-05 19:32:25 +08:00
/******/ }
2019-10-09 05:45:47 +08:00
/******/ script.src = url;
/******/
/******/ // create error before stack unwound to get useful stacktrace later
/******/ var error = new Error();
2020-05-21 05:26:51 +08:00
/******/ onScriptComplete = (event) => {
/******/ onScriptComplete = () => {
/******/
/******/ }
2019-10-09 05:45:47 +08:00
/******/ // avoid mem leaks in IE.
/******/ script.onerror = script.onload = null;
/******/ clearTimeout(timeout);
/******/ var reportError = loadingEnded();
/******/ if(reportError) {
/******/ var errorType = event & & (event.type === 'load' ? 'missing' : event.type);
/******/ var realSrc = event & & event.target & & event.target.src;
/******/ error.message = 'Loading chunk ' + chunkId + ' failed.\n(' + errorType + ': ' + realSrc + ')';
/******/ error.name = 'ChunkLoadError';
/******/ error.type = errorType;
/******/ error.request = realSrc;
/******/ reportError(error);
/******/ }
2020-05-21 05:26:51 +08:00
/******/ }
/******/ ;
/******/ var timeout = setTimeout(() => {
/******/ onScriptComplete({ type: 'timeout', target: script })
2019-10-09 05:45:47 +08:00
/******/ }, 120000);
/******/ script.onerror = script.onload = onScriptComplete;
/******/ document.head.appendChild(script);
/******/ } else installedChunks[chunkId] = 0;
/******/ }
2018-12-19 21:05:17 +08:00
/******/ }
/******/ };
/******/
/******/ // no prefetching
/******/
2020-05-21 05:26:51 +08:00
/******/ // no preloaded
/******/
2018-12-19 21:05:17 +08:00
/******/ // no HMR
/******/
/******/ // no HMR manifest
/******/
2019-10-09 05:45:47 +08:00
/******/ var checkDeferredModules = () => {
/******/
/******/ };
2018-12-19 21:05:17 +08:00
/******/ function checkDeferredModulesImpl() {
/******/ var result;
/******/ for(var i = 0; i < deferredModules.length ; i + + ) {
/******/ var deferredModule = deferredModules[i];
/******/ var fulfilled = true;
/******/ for(var j = 1; j < deferredModule.length ; j + + ) {
/******/ var depId = deferredModule[j];
/******/ if(installedChunks[depId] !== 0) fulfilled = false;
/******/ }
/******/ if(fulfilled) {
/******/ deferredModules.splice(i--, 1);
/******/ result = __webpack_require__ (__webpack_require__.s = deferredModule[0]);
/******/ }
/******/ }
2020-05-21 05:26:51 +08:00
/******/ if(deferredModules.length === 0) {
/******/ __webpack_require__ .x();
/******/ __webpack_require__ .x = () => {
/******/
/******/ }
/******/ }
2018-12-19 21:05:17 +08:00
/******/ return result;
2018-01-20 00:06:59 +08:00
/******/ }
2019-10-09 05:45:47 +08:00
/******/ __webpack_require__ .x = () => {
2020-05-21 05:26:51 +08:00
/******/ // reset startup function so it can be called again when more startup code is added
/******/ __webpack_require__ .x = () => {
/******/
/******/ }
/******/ jsonpArray = jsonpArray.slice();
/******/ for(var i = 0; i < jsonpArray.length ; i + + ) webpackJsonpCallback ( jsonpArray [ i ] ) ;
2018-12-19 21:05:17 +08:00
/******/ return (checkDeferredModules = checkDeferredModulesImpl)();
/******/ };
/******/
/******/ // install a JSONP callback for chunk loading
/******/ function webpackJsonpCallback(data) {
/******/ var chunkIds = data[0];
/******/ var moreModules = data[1];
/******/ var executeModules = data[2];
/******/ var runtime = data[3];
/******/ // add "moreModules" to the modules object,
/******/ // then flag all "chunkIds" as loaded and fire callback
/******/ var moduleId, chunkId, i = 0, resolves = [];
/******/ for(;i < chunkIds.length ; i + + ) {
/******/ chunkId = chunkIds[i];
2020-05-21 05:26:51 +08:00
/******/ if(__webpack_require__.o(installedChunks, chunkId) & & installedChunks[chunkId]) {
2018-12-19 21:05:17 +08:00
/******/ resolves.push(installedChunks[chunkId][0]);
/******/ }
/******/ installedChunks[chunkId] = 0;
/******/ }
/******/ for(moduleId in moreModules) {
2020-05-21 05:26:51 +08:00
/******/ if(__webpack_require__.o(moreModules, moduleId)) {
2018-12-19 21:05:17 +08:00
/******/ __webpack_require__ .m[moduleId] = moreModules[moduleId];
/******/ }
/******/ }
/******/ if(runtime) runtime(__webpack_require__);
/******/ if(parentJsonpFunction) parentJsonpFunction(data);
/******/ while(resolves.length) {
/******/ resolves.shift()();
/******/ }
/******/
/******/ // add entry modules from loaded chunk to deferred list
/******/ if(executeModules) deferredModules.push.apply(deferredModules, executeModules);
/******/
/******/ // run deferred modules when all chunks ready
/******/ return checkDeferredModules();
/******/ };
/******/
/******/ var jsonpArray = window["webpackJsonp"] = window["webpackJsonp"] || [];
/******/ var oldJsonpFunction = jsonpArray.push.bind(jsonpArray);
/******/ jsonpArray.push = webpackJsonpCallback;
/******/ var parentJsonpFunction = oldJsonpFunction;
2020-05-21 05:26:51 +08:00
/******/ })();
2018-12-19 21:05:17 +08:00
/******/
2019-10-11 05:11:05 +08:00
/************************************************************************/
2019-11-19 21:10:28 +08:00
```
< / details >
``` js
2019-10-11 05:11:05 +08:00
/******/ // run startup
/******/ return __webpack_require__ .x();
/******/ })()
;
2018-01-20 00:06:59 +08:00
```
2015-11-21 04:36:43 +08:00
2018-01-05 04:39:29 +08:00
# dist/main.[chunkhash].js
2015-11-21 04:36:43 +08:00
2019-04-09 02:29:40 +08:00
```javascript
2018-09-25 23:08:35 +08:00
(window["webpackJsonp"] = window["webpackJsonp"] || []).push([[1],[
2017-12-14 17:58:03 +08:00
/* 0 */
2015-11-21 04:36:43 +08:00
/*!********************!*\
!*** ./example.js ** *!
\********************/
2020-05-21 05:26:51 +08:00
/*! unknown exports (runtime-defined) */
/*! exports [maybe provided (runtime-defined)] [unused] */
2019-10-11 05:11:05 +08:00
/*! runtime requirements: __webpack_require__ .e, __webpack_require__ .t, __webpack_require__ .* */
/***/ ((__unused_webpack_module, __unused_webpack_exports, __webpack_require__ ) => {
2015-11-21 04:36:43 +08:00
2016-09-07 18:28:56 +08:00
// some module
2018-12-19 21:05:17 +08:00
__webpack_require__.e(/*! import() */ 2).then(__webpack_require__.t.bind(__webpack_require__, /* ! ./async1 */ 1, 7));
__webpack_require__.e(/*! import() */ 3).then(__webpack_require__.t.bind(__webpack_require__, /* ! ./async2 */ 2, 7));
2015-11-21 04:36:43 +08:00
2017-02-13 15:49:35 +08:00
/***/ })
2018-09-25 23:08:35 +08:00
],[[0,0]]]);
2015-11-21 04:36:43 +08:00
```
# Info
2017-12-14 17:58:03 +08:00
## Unoptimized
2015-11-21 04:36:43 +08:00
```
2017-12-14 17:58:03 +08:00
Hash: 0a1b2c3d4e5f6a7b8c9d
2020-05-21 05:26:51 +08:00
Version: webpack 5.0.0-beta.16
2019-10-11 05:11:05 +08:00
Asset Size
2020-05-21 05:26:51 +08:00
2.[chunkhash].js 370 bytes [emitted]
3.[chunkhash].js 364 bytes [emitted]
main.[chunkhash].js 710 bytes [emitted] [name: main]
runtime~main.[chunkhash].js 10.9 KiB [emitted] [name: runtime~main]
2018-02-10 22:09:46 +08:00
Entrypoint main = runtime~main.[chunkhash].js main.[chunkhash].js
2020-05-21 05:26:51 +08:00
chunk runtime~main.[chunkhash].js (runtime~main) 6.59 KiB [entry] [rendered]
2018-01-20 00:06:59 +08:00
> ./example main
2020-05-21 05:26:51 +08:00
8 chunk modules
2019-10-11 05:11:05 +08:00
chunk main.[chunkhash].js (main) 55 bytes [initial] [rendered]
2018-01-20 00:06:59 +08:00
> ./example main
2019-10-11 05:11:05 +08:00
./example.js 55 bytes [built]
2020-05-21 05:26:51 +08:00
[no exports used]
2018-12-19 21:05:17 +08:00
entry ./example main
2019-10-11 05:11:05 +08:00
chunk 2.[chunkhash].js 28 bytes [rendered]
> ./async1 ./example.js 2:0-18
./async1.js 28 bytes [built]
import() ./async1 ./example.js 2:0-18
chunk 3.[chunkhash].js 28 bytes [rendered]
> ./async2 ./example.js 3:0-18
./async2.js 28 bytes [built]
import() ./async2 ./example.js 3:0-18
2015-11-21 04:36:43 +08:00
```
2017-12-14 17:58:03 +08:00
## Production mode
2015-11-21 04:36:43 +08:00
```
2017-12-14 17:58:03 +08:00
Hash: 0a1b2c3d4e5f6a7b8c9d
2020-05-21 05:26:51 +08:00
Version: webpack 5.0.0-beta.16
2019-10-11 05:11:05 +08:00
Asset Size
114.[chunkhash].js 73 bytes [emitted]
172.[chunkhash].js 73 bytes [emitted]
main.[chunkhash].js 155 bytes [emitted] [name: main]
2020-05-21 05:26:51 +08:00
runtime~main.[chunkhash].js 2.11 KiB [emitted] [name: runtime~main]
2018-02-10 22:09:46 +08:00
Entrypoint main = runtime~main.[chunkhash].js main.[chunkhash].js
2019-10-11 05:11:05 +08:00
chunk 114.[chunkhash].js 28 bytes [rendered]
> ./async1 ./example.js 2:0-18
./async1.js 28 bytes [built]
import() ./async1 ./example.js 2:0-18
chunk 172.[chunkhash].js 28 bytes [rendered]
> ./async2 ./example.js 3:0-18
./async2.js 28 bytes [built]
import() ./async2 ./example.js 3:0-18
chunk main.[chunkhash].js (main) 55 bytes [initial] [rendered]
2018-01-20 00:06:59 +08:00
> ./example main
2019-10-11 05:11:05 +08:00
./example.js 55 bytes [built]
[no exports used]
entry ./example main
2020-05-21 05:26:51 +08:00
chunk runtime~main.[chunkhash].js (runtime~main) 6.6 KiB [entry] [rendered]
2018-12-19 18:36:59 +08:00
> ./example main
2020-05-21 05:26:51 +08:00
8 chunk modules
2017-12-14 17:58:03 +08:00
```