1.1.7 • Published 5 years ago

dahlia-webpack-antd v1.1.7

Weekly downloads
8
License
MIT
Repository
github
Last release
5 years ago

dahlia-webpack-antd

Installation

yarn add dahlia-webpack-override dahlia-webpack-antd

Usage

const override = require('dahlia-webpack-override')
const antd = require('dahlia-webpack-antd')

module.exports = {
  webpack(config, env) {
    return override(config, env).pipe(antd())
  },
}

Customize Ant Design Theme

to modify the default Ant Design theme:

const override = require('dahlia-webpack-override')
const antd = require('dahlia-webpack-antd')
const less = require('dahlia-webpack-less')

module.exports = {
  webpack(config, env) {
    const newConfig = override(config, env).pipe(
      less({
        modifyVars: {
          'primary-color': 'black',
          'link-color': '#1DA57A',
          'border-radius-base': '10px',
        },
        javascriptEnabled: true,
      }),
      antd({
        style: true,
      }),
    )

    return newConfig
  },
}

License

MIT License

1.1.7

5 years ago

1.1.6

5 years ago

1.1.5

5 years ago

1.1.4

5 years ago

1.1.3

5 years ago

1.1.2

5 years ago

1.1.1

5 years ago

1.1.0

5 years ago

1.0.0

5 years ago