0.3.0 • Published 7 years ago

serlina-plugin-antd v0.3.0

Weekly downloads
3
License
MIT
Repository
github
Last release
7 years ago

serlina-plugin-antd

Delightful using Ant.Design in Serlina.

✅ Support babel-plugin-import ✅ Support TypeScript

Usage

npm i antd serlina-plugin-antd
// serlina.config.js

const { withAntd } = require('serlina-plugin-antd')

module.exports = withAntd()

// or

module.exports = withAntd({ /** your config */ }, {
  // custom less-loader config
  modifyVars: {
    'primary-color': '#000'
  }
})

withAntd includes:

  • babel-plugin-import
  • less

Use with TypeScript

npm i typescript @types/react

Place your tsconfig.json under baseDir.

const { withTSAntd } = requrie('serlina-plugin-antd')

module.exports = withTSAntd()

withTSAntd use Babel to tranform. So you can use target: "es6".

License

MIT License

0.3.0

7 years ago

0.2.5

7 years ago

0.2.4

7 years ago

0.2.3

7 years ago

0.2.2

7 years ago

0.2.1

7 years ago

0.2.0

7 years ago

0.1.4

7 years ago

0.1.3

7 years ago

0.1.2

7 years ago

0.1.1

7 years ago

0.1.0

7 years ago