0.1.2 • Published 7 years ago
antd-serlina-webpack-config v0.1.2
antd-serlina-webpack-config
npm i antd-serlina-webpack-configwithAntd
Includes:
less,less-loaderbabel-plugin-importfor 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: { /** ... */ }
    }
  })
}