antd-serlina-webpack-config

antd webpack config for serlina

Usage no npm install needed!

<script type="module">
  import antdSerlinaWebpackConfig from 'https://cdn.skypack.dev/antd-serlina-webpack-config';
</script>

README

antd-serlina-webpack-config

npm i antd-serlina-webpack-config

withAntd

Includes:

// 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: { /** ... */ }
    }
  })
}