Skip to content
This repository has been archived by the owner on Nov 4, 2018. It is now read-only.

在 theme.js修改@icon-url无效 #136

Closed
rojer95 opened this issue Dec 21, 2016 · 1 comment
Closed

在 theme.js修改@icon-url无效 #136

rojer95 opened this issue Dec 21, 2016 · 1 comment

Comments

@rojer95
Copy link

rojer95 commented Dec 21, 2016

根据 https://github.com/ant-design/antd-init/tree/master/examples/customize-antd-theme 自定义主题

theme.js如下:

module.exports = () => {
  return {
    '@icon-url'       : 'https://at.alicdn.com/t/font_po7qronyydeljtt9',
    '@primary-color':  '#44b549',
  };
};

且已经在package.json配置

  "theme": "./src/theme.js"

webpack.config.js

  webpackConfig.babel.plugins.push(['import', {
    libraryName: 'antd',
    style: true,
  }]);

结果如下:
qq 20161221123806

对于这 并没有变化。
20161221124014

另外 '@primary-color': '#44b549' 这条确实生效了!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants