Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

@crxjs/vite-plugin doesn't work with the vite-plugin-svg-icons in dev mode #113

Open
tomdyqin opened this issue Nov 14, 2024 · 2 comments
Open

Comments

@tomdyqin
Copy link

crxjs/chrome-extension-tools#654

@tomdyqin
Copy link
Author

because crxjs will change the url like '/@id/virtual:svg-icons-register?t=1731562337593'

solution:

    configureServer: ({ middlewares }) => {
      middlewares.use(cors({ origin: "*" }));
      middlewares.use(async (req, res, next) => {
        const url = normalizePath(req.url).split('?')[0]; <====

@boburxj
Copy link

boburxj commented Nov 22, 2024

@tomdyqin can u share the full plugins section of ur vite config file, please ?
cant understand what should i do with that url

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

No branches or pull requests

2 participants