Giter VIP home page Giter VIP logo

antd-pro-merge-less's Introduction

Hi there 👋 I'm chensshuai2144 (期贤) .

  • 📍 杭州
  • 🍉 Working on ant digital
  • 📚 Want to acquire all the knowledge
  • 👨‍👩‍👦 Married and one child
  • 🦸‍♂️ Become a great programmer

antd-pro-merge-less's People

Contributors

afc163 avatar ashonea avatar byan avatar chenshuai2144 avatar chj-damon avatar jing-wu avatar popomore 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

Watchers

 avatar  avatar

antd-pro-merge-less's Issues

Document statement issues

ERROR Failed to compile with 1 errors 16:05:35

error in ./node_modules/antd-pro-merge-less/index.js

Module parse failed: Unexpected character '#' (1:0)
You may need an appropriate loader to handle this file type, currently no loaders are configured to process this file. See https://webpack.js.org/concepts#loaders

#!/usr/bin/env node
| /**
| * 这个方法用来处理 css-modlue

@ dll umi

error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

antd3.x版本无法使用

  • antd版本:3.26.6
  • antd-pro-merge-less版本:3.0.10
  • 报错信息:
    image
  • 报错原因:index.js第9行引用了@ant-design/dark-theme的包,@ant-design/dark-theme依赖的antd版本是4.x,3.x版本中没有dark-theme文件

是否考虑兼容下3.x版本的antd

Ant Design 4.0 中 Menu 构建样式 CSS 顺序有误。

拉一下 Antd 最新的代码,npm start,访问 http://localhost:8001/components/menu/#components-menu-demo-style-debug。(打开 debug 例子的开关)

整体主色调成 dark,menu 调成 dark。

menu 样式错乱。

image

站点的 dark.css 之中 menu 的 css 顺序有误。应该 7000 多行那个出现在后面。
image

dist/antd.dark.css 的样式是正确的。
image

不更新了吗

编译 antd 4.19.1 主题样式报错

是 antd 4.19 样式做了什么调整吗,4.18的版本可以正常 build,4.19以上版本build提示找不到css变量。
image
@chj-damon

TypeError [ERR_INVALID_ARG_TYPE]

INFO 💄 build theme
🔩 less render start!
TypeError [ERR_INVALID_ARG_TYPE]: The "data" argument must be of type string or an instance of Buffer, TypedArray, or DataView. Received undefined
at Object.writeFileSync (fs.js:1517:5)
at loop (G:\SVN2\trunk\HY.WebUI\node_modules\antd-pro-merge-less\index.js:287:12)
at build (G:\SVN2\trunk\HY.WebUI\node_modules\antd-pro-merge-less\index.js:299:5) {
code: 'ERR_INVALID_ARG_TYPE'
}

AntD4.0 样式编译失败

antd 版本: 4.0.0-rc.3
antd-pro-merge-less版本:2.0.28
错误原因:部分less变量未找到
报错信息:{ [Error: variable @btn-padding-sm is undefined]
message: 'variable @btn-padding-sm is undefined',
stack: undefined,
type: 'Name',
filename:
'D:\rainbow\demo-master\node_modules\antd-pro-merge-less\.temp\antd.less',
index: 204508,
line: 8483,
column: 22,
callLine: NaN,
callExtract: undefined,
extract:
[ ' .button-size(',
' @btn-height-sm; @btn-padding-sm; @font-size-base; @border-radius-base',
' );' ] }

image

antd 版本号 >= 4.3.0 都有问题

antd 4.3.0 增加了一个名为 components/style/core/global.less 的 less 文件,而 antd-pro-merge-less 却把所有名为 global.less 的文件给忽略掉了,导致大量基础样式处理出现问题。

1
2

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.