title: How to make __webpack_public_path__ work with DllPlugin?
body: <p>I want to set <code>publicPath</code> on the fly by introducing a module:</p>
  <pre class="lang-js prettyprint-override"><code>__webpack_public_path__ = window.PUBLIC_PATH;
  </code></pre>
  <p>This works in my main webpack config. However, it doesn't work with DllPlugin.</p>
  <p>I tried to add this module into the <code>entry</code>, I can see the output actually contains this code, but it never get executed (it's just been wrapped as a module), the <code>publicPath</code> is always an empty string.</p>
  <p>My config with DllPlugin is just like <a href="https://github.com/webpack/webpack/blob/main/examples/dll/webpack.config.js" rel="nofollow noreferrer">https://github.com/webpack/webpack/blob/main/examples/dll/webpack.config.js</a></p>