Skip to content

Commit

Permalink
fix(mc-scripts): revert unnecessary change
Browse files Browse the repository at this point in the history
  • Loading branch information
emmenko committed Apr 26, 2022
1 parent 33ffaef commit 2ecc035
Showing 1 changed file with 2 additions and 14 deletions.
16 changes: 2 additions & 14 deletions packages/mc-scripts/src/config/application-runtime.js
Expand Up @@ -2,17 +2,5 @@
// Dynamically inject webpack `publicPath`, for resolving assets locations.
// https://webpack.js.org/guides/public-path/#on-the-fly
// https://webpack.js.org/configuration/output/#output-publicpath
if (process.env.NODE_ENV !== 'test') {
const basePath = `${window.app.cdnUrl.replace(/\/$/, '')}/`;

// Webpack
__webpack_public_path__ = basePath;

// Vite
window.__dynamicImportHandler__ = function (importer) {
return basePath + importer;
};
window.__dynamicImportPreload__ = function (preloads) {
return preloads.map((preload) => basePath + preload);
};
}
if (process.env.NODE_ENV !== 'test')
__webpack_public_path__ = `${window.app.cdnUrl.replace(/\/$/, '')}/`;

0 comments on commit 2ecc035

Please sign in to comment.