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

npx ng-alain-plugin-theme -t=themeCss 生成的css文件中没有自定义的样式 #12

Open
ahhxyz opened this issue Aug 20, 2023 · 0 comments

Comments

@ahhxyz
Copy link

ahhxyz commented Aug 20, 2023

我的ng-alain.json内如如下:

{
  "$schema": "./node_modules/ng-alain/schema.json",
  "theme": {
    "additionalThemeVars": [
      "./src/app/layout/pro/styles/theme-#NAME#.less",
      "./src/styles/fix/theme-#NAME#.less"
    ],
    "list": [
      {
        "theme": "dark"
      },
      {
        "theme": "compact"
      }
    ]
  }
}

其中的less文件的路径是正确的。
执行
npx ng-alain-plugin-theme -t=themeCss
生成了对应的css文件:
✅ Style 'dark' generated successfully. Output: src/assets/style.dark.css
✅ Style 'compact' generated successfully. Output: src/assets/style.compact.css.
但是compact主题下的自定义样式未在页面生效。经排查发现, ./src/app/layout/pro/styles/theme-compact.less./src/styles/fix/theme-compact.less中的自定义样式不在新生成的src/assets/style.compact.css中,。
请问这是哪里的问题,谢谢

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