antd-self-merge-less

A webpack plugin for ant design pro less

Usage no npm install needed!

<script type="module">
  import antdSelfMergeLess from 'https://cdn.skypack.dev/antd-self-merge-less';
</script>

README

antd-pro-merge-less

使用方式:

// 将所有 less 合并为一个供 themePlugin使用
  const outFile = path.join(__dirname, './.temp/ant-design-pro.less');
  const stylesDir = path.join(__dirname, './src/');

  const mergeLessPlugin = new MergeLessPlugin({
    stylesDir,
    outFile,
  });