GithubHelp home page GithubHelp logo

Comments (7)

mzohaibqc avatar mzohaibqc commented on June 17, 2024

Use https://github.com/mzohaibqc/antd-theme-generator for non create-create-react projects. It's pretty simple

from antd-theme-webpack-plugin.

liujunyi avatar liujunyi commented on June 17, 2024

Use https://github.com/mzohaibqc/antd-theme-generator for non create-create-react projects. It's pretty simple
thank you! I try your code,it's ok in dev but it's failed after build. lost some less files.
in my code ,i did the following things.

<script> window.less = { async: false, env: 'production' }; </script> <script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/less.js/2.7.2/less.min.js"></script> Now you can update colors by updating less avriables like this

window.less.modifyVars({
'@primary-color': '#0035ff'
})

from antd-theme-webpack-plugin.

mzohaibqc avatar mzohaibqc commented on June 17, 2024

@liujunyi Can you create a repo with sample code so that I can't look into that. This information is not sufficient to determine what's wrong. :)

from antd-theme-webpack-plugin.

kstar11 avatar kstar11 commented on June 17, 2024

Hi! I got the same problem;
I new a project with dva-cli,and then add <script> tags in index.html;
when using window.less.modifyVars(),nothing hanppens;
hmm...my codebox https://codesandbox.io/s/yqolo5x76z
thanks

from antd-theme-webpack-plugin.

mzohaibqc avatar mzohaibqc commented on June 17, 2024

@kstar11 @liujunyi Kindly first create a dva-cli demo project with Ant Design configured. @kstar11 You codesandbox demo is not properly configured with Ant Design. Css is not working. First create a valid demo so I can try to configure theme plugin

from antd-theme-webpack-plugin.

kstar11 avatar kstar11 commented on June 17, 2024

hmm...codescanbox doesn't works...
https://github.com/kstar11/dva-antd-theme-generator
I created a github repo...
thanks

from antd-theme-webpack-plugin.

mzohaibqc avatar mzohaibqc commented on June 17, 2024

I'll look into this

from antd-theme-webpack-plugin.

Related Issues (20)

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.