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

[Bug] windows下mako配置约定式路由build后,less样式丢失 #12928

Open
flgame opened this issue Feb 18, 2025 · 1 comment
Open

[Bug] windows下mako配置约定式路由build后,less样式丢失 #12928

flgame opened this issue Feb 18, 2025 · 1 comment

Comments

@flgame
Copy link

flgame commented Feb 18, 2025

What happens?

windows下使用umi4,开启mako及约定式路由build后,less样式丢失,通过浏览器debug,可以看到样式文件以base64格式打包进去了。
使用配置式路由是正常,npm start也正常,只有约定式路由下npm run build 会有问题。

import { defineConfig } from "umi";

export default defineConfig({
  //routes: [
  //  { path: "/", component: "index" },
  //  { path: "/docs", component: "docs" },
  //],
  npmClient: 'pnpm',
  mako: {},
  exportStatic: {},
});

Image

Mini Showcase Repository(REQUIRED)

https://codesandbox.io/p/sandbox/7gljcr

How To Reproduce

Steps to reproduce the behavior: 1. 2.

Expected behavior 1. 2.

Context

  • Umi Version: 4.4.5
  • Node Version: 18
  • Platform: windows
@flgame
Copy link
Author

flgame commented Mar 28, 2025

help @sorrycc

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

1 participant