Giter Club home page Giter Club logo

dynamic-theme-demos's People

Contributors

gitofzgt avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

dynamic-theme-demos's Issues

Demo not working

Hello, The demo projects/vite-antd-vue-preset-theme is not working...

更多的demo

比如

ant-design-pro+ts+vite 更改主题色
ant-design-vue+ts+vite 更改主题色

大佬🐂🍺

Can't switch between themes when arbitraryMode = true

Hello, is it possible to switch between themes when arbitraryMode = true?

When running the "webpack-react-antd-dynamic-theme" demo in this repo, I noticed that when arbitraryMode = true is set in the config of ThemeCssExtractWebpackPlugin, the html tag does not contain theme info like class="theme-mauve", and I cannot switch between the themes defined in multipleScopeVars array.

When I comment out arbitraryMode = true, then the themes are working but now I cannot set arbitrary theme color.

getDynamicThemePluginConfig.js

const multipleScopeVars = [
  {
    // 必需
    scopeName: "theme-mauve",
    // path和varsContent选一个
    path: path.resolve("src/theme/mauve-vars.less"),
    // varsContent:`@--color-primary:#9c26b;`
  },
  {
    scopeName: 'theme-second',
    path: path.resolve('src/theme/second-vars.less'),
  }
];

// ...
new ThemeCssExtractWebpackPlugin({
  // 以下是任意主题模式的参数 arbitraryMode:true 有效
  // arbitraryMode: true,
  // ...
})

Any help is appreciated, thank you.

nginx二级代理 theme-default.css 404

你好,我vue-cli4 +webpack4+ less项目,按照demo能切换皮肤,预先生成主题css文件。但是打包之后用nginx代理了二级路径比如127.0.0.1/web/#/,然后访问theme-default 就报404(404访问路径为:127.0.0.1/theme-default.css , 实际应该多二级目录127.0.0.1/web/theme-default.css才行)。 我看了下打包之后的index.html,然后我看了下打包之后的index.html下面。主题themeTagLik 的路径为‘/assets/xxx/xxx/theme-default.css’,前面多了一个‘/’, 然后再看了源码源码设置themeTagLink的时候 路径前面都配了‘/’导致代理时候就出现错误。目前没找到其他的配置方法,只得把前面‘/’删了

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.