Skip to content
This repository has been archived by the owner on Feb 24, 2023. It is now read-only.

A question about __dynamicImportHandler__ #10

Open
xhofe opened this issue Feb 3, 2022 · 0 comments
Open

A question about __dynamicImportHandler__ #10

xhofe opened this issue Feb 3, 2022 · 0 comments

Comments

@xhofe
Copy link

xhofe commented Feb 3, 2022

My Project is build with Vite and React, I imported vite-plugin-dynamic-publicpath according to the instructions in the README.
But it doesn't work, it repeatedly loads js files that do not contain assets in the path.
image
If I change __dynamicImportHandler__ to:

window.__dynamicImportHandler__ = function (importer) {
  return dynamicCdn + "assets/" + importer;
};

it works, but I don't think this is the right approach.
So, I don't know if it's my action or the plugin's problem.
My repository: https://github.com/alist-org/alist-web/tree/dynamic

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant