Skip to content

Commit

Permalink
Deploying to gh-pages from @ 2c765b9 🚀
Browse files Browse the repository at this point in the history
  • Loading branch information
chenxsan committed Jun 30, 2023
1 parent cdc9681 commit 44cdf77
Show file tree
Hide file tree
Showing 171 changed files with 408 additions and 313 deletions.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion 1360.7d1366c43c9771aa.js → 1360.7285505855abd217.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion 6822.0212fb9ace50ec75.js → 6822.b0c722323b4bb0f8.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion api/cli/index.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion api/compilation-hooks/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -89,4 +89,4 @@
<span class="token comment">// @todo: do something with &quot;pathname&quot;, &quot;source&quot; and &quot;assetInfo&quot;</span>
<span class="token punctuation">}</span><span class="token punctuation">)</span><span class="token punctuation">;</span>
<span class="token punctuation">}</span>
<span class="token punctuation">)</span><span class="token punctuation">;</span></code></pre><h3><span id="afterprocessassets"></span>afterProcessAssets<a href="#afterprocessassets" aria-hidden="true" tabindex="-1"><span class="header-link"></span></a></h3><p><code>SyncHook</code></p><p>Called after the <a href="#processassets"><code>processAssets</code></a> hook had finished without error.</p><h3><span id="needadditionalseal"></span>needAdditionalSeal<a href="#needadditionalseal" aria-hidden="true" tabindex="-1"><span class="header-link"></span></a></h3><p><code>SyncBailHook</code></p><p>Called to determine if the compilation needs to be unsealed to include other files.</p><h3><span id="afterseal"></span>afterSeal<a href="#afterseal" aria-hidden="true" tabindex="-1"><span class="header-link"></span></a></h3><p><code>AsyncSeriesHook</code></p><p>Executed right after <code>needAdditionalSeal</code>.</p><h3><span id="chunkhash"></span>chunkHash<a href="#chunkhash" aria-hidden="true" tabindex="-1"><span class="header-link"></span></a></h3><p><code>SyncHook</code></p><p>Triggered to emit the hash for each chunk.</p><ul><li>Callback Parameters: <code>chunk</code> <code>chunkHash</code></li></ul><h3><span id="moduleasset"></span>moduleAsset<a href="#moduleasset" aria-hidden="true" tabindex="-1"><span class="header-link"></span></a></h3><p><code>SyncHook</code></p><p>Called when an asset from a module was added to the compilation.</p><ul><li>Callback Parameters: <code>module</code> <code>filename</code></li></ul><h3><span id="chunkasset"></span>chunkAsset<a href="#chunkasset" aria-hidden="true" tabindex="-1"><span class="header-link"></span></a></h3><p><code>SyncHook</code></p><p>Triggered when an asset from a chunk was added to the compilation.</p><ul><li>Callback Parameters: <code>chunk</code> <code>filename</code></li></ul><h3><span id="assetpath"></span>assetPath<a href="#assetpath" aria-hidden="true" tabindex="-1"><span class="header-link"></span></a></h3><p><code>SyncWaterfallHook</code></p><p>Called to determine the path of an asset.</p><ul><li>Callback Parameters: <code>path</code> <code>options</code></li></ul><h3><span id="needadditionalpass"></span>needAdditionalPass<a href="#needadditionalpass" aria-hidden="true" tabindex="-1"><span class="header-link"></span></a></h3><p><code>SyncBailHook</code></p><p>Called to determine if an asset needs to be processed further after being emitted.</p><h3><span id="childcompiler"></span>childCompiler<a href="#childcompiler" aria-hidden="true" tabindex="-1"><span class="header-link"></span></a></h3><p><code>SyncHook</code></p><p>Executed after setting up a child compiler.</p><ul><li>Callback Parameters: <code>childCompiler</code> <code>compilerName</code> <code>compilerIndex</code></li></ul><h3><span id="normalmoduleloader"></span>normalModuleLoader<a href="#normalmoduleloader" aria-hidden="true" tabindex="-1"><span class="header-link"></span></a></h3><p>Since webpack v5 <code>normalModuleLoader</code> hook was removed. Now to access the loader use <code>NormalModule.getCompilationHooks(compilation).loader</code> instead.</p></div><div class="print:hidden mt-20"><a class="text-gray-500 dark:text-gray-500 text-sm cursor-pointer font-sans hover:underline" href="https://github.com/webpack/webpack.js.org/edit/main/src/content/api/compilation-hooks.mdx">Edit this page</a><span class="mx-5 text-black font-bold dark:text-white">·</span><a class="text-gray-500 dark:text-gray-500 text-sm cursor-pointer font-sans hover:underline">Print this page</a></div><div class="adjacent-links print:hidden"><div class="adjacent-links__prev"><div>« Previous</div><a class="adjacent-links__link" href="/api/compiler-hooks/">Compiler Hooks</a></div><div class="adjacent-links__next"><div class="adjacent-links__label--next">Next »</div><a class="adjacent-links__link" href="/api/contextmodulefactory-hooks/">ContextModuleFactory Hooks</a></div></div><div data-testid="contributors" class="print:hidden"><h2 class="!font-sans !font-normal">8<!-- --> <!-- -->Contributors</h2><div><div class="grid gap-[10px] lg:gap-[15px] grid-cols-contributors"><a href="https://github.com/slavafomin"><img width="45" height="45" alt="slavafomin" title="slavafomin" class="w-full rounded-full shadow" src="/icon-square-small-slack.1c7f4f7a52c41f94.png"/></a><a href="https://github.com/byzyk"><img width="45" height="45" alt="byzyk" title="byzyk" class="w-full rounded-full shadow" src="/icon-square-small-slack.1c7f4f7a52c41f94.png"/></a><a href="https://github.com/madhavarshney"><img width="45" height="45" alt="madhavarshney" title="madhavarshney" class="w-full rounded-full shadow" src="/icon-square-small-slack.1c7f4f7a52c41f94.png"/></a><a href="https://github.com/misterdev"><img width="45" height="45" alt="misterdev" title="misterdev" class="w-full rounded-full shadow" src="/icon-square-small-slack.1c7f4f7a52c41f94.png"/></a><a href="https://github.com/wizardofhogwarts"><img width="45" height="45" alt="wizardofhogwarts" title="wizardofhogwarts" class="w-full rounded-full shadow" src="/icon-square-small-slack.1c7f4f7a52c41f94.png"/></a><a href="https://github.com/EugeneHlushko"><img width="45" height="45" alt="EugeneHlushko" title="EugeneHlushko" class="w-full rounded-full shadow" src="/icon-square-small-slack.1c7f4f7a52c41f94.png"/></a><a href="https://github.com/chenxsan"><img width="45" height="45" alt="chenxsan" title="chenxsan" class="w-full rounded-full shadow" src="/icon-square-small-slack.1c7f4f7a52c41f94.png"/></a><a href="https://github.com/jamesgeorge007"><img width="45" height="45" alt="jamesgeorge007" title="jamesgeorge007" class="w-full rounded-full shadow" src="/icon-square-small-slack.1c7f4f7a52c41f94.png"/></a></div></div></div></div></section></div><footer class="footer"><div class="container footer__inner"><section class="footer__left"><a class="footer__link" href="/guides/getting-started/">Get Started</a><a class="footer__link" href="/comparison/">Comparison</a><a href="https://privacy-policy.openjsf.org/" target="_blank" rel="noopener noreferrer" class="footer__link">Privacy Policy</a></section><section class="footer__middle"><a class="footer__icon" href="/"><img src="/icon-square-small.9e8aff7a67a5dd20.svg" alt="webpack icon" width="35" height="35"/></a></section><section class="footer__right"><a href="https://webpack.threadless.com/" target="_blank" rel="noopener noreferrer" class="footer__link">Swag Store</a><a class="footer__link" href="/awesome-webpack/">Awesome webpack</a><a class="footer__link" href="/glossary/">Glossary</a><a class="footer__link" href="/branding/">Branding</a><a href="https://gitter.im/webpack/webpack" target="_blank" rel="noopener noreferrer" class="footer__link">Gitter</a><a href="https://github.com/webpack/webpack/releases" target="_blank" rel="noopener noreferrer" class="footer__link">Changelog</a><a class="footer__link footer__license" href="/license"><img alt="Creative Commons License" src="/cc.185f5779f354f6e9.svg" width="25" height="25"/><img alt="Creative Commons License" src="/by.d2da85793ea9d7bd.svg" width="25" height="25"/></a></section></div></footer></div></div><script src="/vendor.873c9180dffaaddd.js"></script><script src="/index.e89579006b5b042e.js"></script></body>
<span class="token punctuation">)</span><span class="token punctuation">;</span></code></pre><h3><span id="afterprocessassets"></span>afterProcessAssets<a href="#afterprocessassets" aria-hidden="true" tabindex="-1"><span class="header-link"></span></a></h3><p><code>SyncHook</code></p><p>Called after the <a href="#processassets"><code>processAssets</code></a> hook had finished without error.</p><h3><span id="needadditionalseal"></span>needAdditionalSeal<a href="#needadditionalseal" aria-hidden="true" tabindex="-1"><span class="header-link"></span></a></h3><p><code>SyncBailHook</code></p><p>Called to determine if the compilation needs to be unsealed to include other files.</p><h3><span id="afterseal"></span>afterSeal<a href="#afterseal" aria-hidden="true" tabindex="-1"><span class="header-link"></span></a></h3><p><code>AsyncSeriesHook</code></p><p>Executed right after <code>needAdditionalSeal</code>.</p><h3><span id="chunkhash"></span>chunkHash<a href="#chunkhash" aria-hidden="true" tabindex="-1"><span class="header-link"></span></a></h3><p><code>SyncHook</code></p><p>Triggered to emit the hash for each chunk.</p><ul><li>Callback Parameters: <code>chunk</code> <code>chunkHash</code></li></ul><h3><span id="moduleasset"></span>moduleAsset<a href="#moduleasset" aria-hidden="true" tabindex="-1"><span class="header-link"></span></a></h3><p><code>SyncHook</code></p><p>Called when an asset from a module was added to the compilation.</p><ul><li>Callback Parameters: <code>module</code> <code>filename</code></li></ul><h3><span id="chunkasset"></span>chunkAsset<a href="#chunkasset" aria-hidden="true" tabindex="-1"><span class="header-link"></span></a></h3><p><code>SyncHook</code></p><p>Triggered when an asset from a chunk was added to the compilation.</p><ul><li>Callback Parameters: <code>chunk</code> <code>filename</code></li></ul><h3><span id="assetpath"></span>assetPath<a href="#assetpath" aria-hidden="true" tabindex="-1"><span class="header-link"></span></a></h3><p><code>SyncWaterfallHook</code></p><p>Called to determine the path of an asset.</p><ul><li>Callback Parameters: <code>path</code> <code>options</code></li></ul><h3><span id="needadditionalpass"></span>needAdditionalPass<a href="#needadditionalpass" aria-hidden="true" tabindex="-1"><span class="header-link"></span></a></h3><p><code>SyncBailHook</code></p><p>Called to determine if an asset needs to be processed further after being emitted.</p><h3><span id="childcompiler"></span>childCompiler<a href="#childcompiler" aria-hidden="true" tabindex="-1"><span class="header-link"></span></a></h3><p><code>SyncHook</code></p><p>Executed after setting up a child compiler.</p><ul><li>Callback Parameters: <code>childCompiler</code> <code>compilerName</code> <code>compilerIndex</code></li></ul><h3><span id="normalmoduleloader"></span>normalModuleLoader<a href="#normalmoduleloader" aria-hidden="true" tabindex="-1"><span class="header-link"></span></a></h3><p>Since webpack v5 <code>normalModuleLoader</code> hook was removed. Now to access the loader use <code>NormalModule.getCompilationHooks(compilation).loader</code> instead.</p></div><div class="print:hidden mt-20"><a class="text-gray-500 dark:text-gray-500 text-sm cursor-pointer font-sans hover:underline" href="https://github.com/webpack/webpack.js.org/edit/main/src/content/api/compilation-hooks.mdx">Edit this page</a><span class="mx-5 text-black font-bold dark:text-white">·</span><a class="text-gray-500 dark:text-gray-500 text-sm cursor-pointer font-sans hover:underline">Print this page</a></div><div class="adjacent-links print:hidden"><div class="adjacent-links__prev"><div>« Previous</div><a class="adjacent-links__link" href="/api/compiler-hooks/">Compiler Hooks</a></div><div class="adjacent-links__next"><div class="adjacent-links__label--next">Next »</div><a class="adjacent-links__link" href="/api/contextmodulefactory-hooks/">ContextModuleFactory Hooks</a></div></div><div data-testid="contributors" class="print:hidden"><h2 class="!font-sans !font-normal">8<!-- --> <!-- -->Contributors</h2><div><div class="grid gap-[10px] lg:gap-[15px] grid-cols-contributors"><a href="https://github.com/slavafomin"><img width="45" height="45" alt="slavafomin" title="slavafomin" class="w-full rounded-full shadow" src="/icon-square-small-slack.1c7f4f7a52c41f94.png"/></a><a href="https://github.com/byzyk"><img width="45" height="45" alt="byzyk" title="byzyk" class="w-full rounded-full shadow" src="/icon-square-small-slack.1c7f4f7a52c41f94.png"/></a><a href="https://github.com/madhavarshney"><img width="45" height="45" alt="madhavarshney" title="madhavarshney" class="w-full rounded-full shadow" src="/icon-square-small-slack.1c7f4f7a52c41f94.png"/></a><a href="https://github.com/misterdev"><img width="45" height="45" alt="misterdev" title="misterdev" class="w-full rounded-full shadow" src="/icon-square-small-slack.1c7f4f7a52c41f94.png"/></a><a href="https://github.com/wizardofhogwarts"><img width="45" height="45" alt="wizardofhogwarts" title="wizardofhogwarts" class="w-full rounded-full shadow" src="/icon-square-small-slack.1c7f4f7a52c41f94.png"/></a><a href="https://github.com/EugeneHlushko"><img width="45" height="45" alt="EugeneHlushko" title="EugeneHlushko" class="w-full rounded-full shadow" src="/icon-square-small-slack.1c7f4f7a52c41f94.png"/></a><a href="https://github.com/chenxsan"><img width="45" height="45" alt="chenxsan" title="chenxsan" class="w-full rounded-full shadow" src="/icon-square-small-slack.1c7f4f7a52c41f94.png"/></a><a href="https://github.com/jamesgeorge007"><img width="45" height="45" alt="jamesgeorge007" title="jamesgeorge007" class="w-full rounded-full shadow" src="/icon-square-small-slack.1c7f4f7a52c41f94.png"/></a></div></div></div></div></section></div><footer class="footer"><div class="container footer__inner"><section class="footer__left"><a class="footer__link" href="/guides/getting-started/">Get Started</a><a class="footer__link" href="/comparison/">Comparison</a><a href="https://privacy-policy.openjsf.org/" target="_blank" rel="noopener noreferrer" class="footer__link">Privacy Policy</a></section><section class="footer__middle"><a class="footer__icon" href="/"><img src="/icon-square-small.9e8aff7a67a5dd20.svg" alt="webpack icon" width="35" height="35"/></a></section><section class="footer__right"><a href="https://webpack.threadless.com/" target="_blank" rel="noopener noreferrer" class="footer__link">Swag Store</a><a class="footer__link" href="/awesome-webpack/">Awesome webpack</a><a class="footer__link" href="/glossary/">Glossary</a><a class="footer__link" href="/branding/">Branding</a><a href="https://gitter.im/webpack/webpack" target="_blank" rel="noopener noreferrer" class="footer__link">Gitter</a><a href="https://github.com/webpack/webpack/releases" target="_blank" rel="noopener noreferrer" class="footer__link">Changelog</a><a class="footer__link footer__license" href="/license"><img alt="Creative Commons License" src="/cc.185f5779f354f6e9.svg" width="25" height="25"/><img alt="Creative Commons License" src="/by.d2da85793ea9d7bd.svg" width="25" height="25"/></a></section></div></footer></div></div><script src="/vendor.873c9180dffaaddd.js"></script><script src="/index.e6d899ffdd85ea94.js"></script></body>
2 changes: 1 addition & 1 deletion api/compilation-object/index.html

Large diffs are not rendered by default.

Loading

0 comments on commit 44cdf77

Please sign in to comment.