README
antd-serlina-webpack-config
npm i antd-serlina-webpack-config
withAntd
Includes:
less
,less-loader
babel-plugin-import
for importing on demand
// serlina.config.js
import { withAntd } from 'antd-serlina-webpack-config'
const myCustomConfig = (webpack, { env }) => {
return {
module: {
// ...
}
}
}
module.exports = {
webpack: withAntd(myCustomConfig, {
// you can custom the less-loader config
less: {
modifyVars: { /** ... */ }
}
})
}