🐛 修复mac os下的 BUG

This commit is contained in:
smallchill 2019-01-04 12:04:57 +08:00
parent 99f824fc36
commit b5da09d191

View File

@ -1,6 +1,6 @@
// Change theme plugin // Change theme plugin
import MergeLessPlugin from 'antd-pro-merge-less'; // import MergeLessPlugin from 'antd-pro-merge-less';
import AntDesignThemePlugin from 'antd-theme-webpack-plugin'; import AntDesignThemePlugin from 'antd-theme-webpack-plugin';
import path from 'path'; import path from 'path';
@ -11,12 +11,13 @@ export default config => {
const outFile = path.join(__dirname, '../.temp/ant-design-pro.less'); const outFile = path.join(__dirname, '../.temp/ant-design-pro.less');
const stylesDir = path.join(__dirname, '../src/'); const stylesDir = path.join(__dirname, '../src/');
config.plugin('merge-less').use(MergeLessPlugin, [ // mac os下有bug, 暂时先注释掉
/*config.plugin('merge-less').use(MergeLessPlugin, [
{ {
stylesDir, stylesDir,
outFile, outFile,
}, },
]); ]);*/
config.plugin('ant-design-theme').use(AntDesignThemePlugin, [ config.plugin('ant-design-theme').use(AntDesignThemePlugin, [
{ {