|
|
@@ -1,10 +1,10 @@
|
|
|
// Change theme plugin
|
|
|
|
|
|
-const MergeLessPlugin = require('antd-pro-merge-less');
|
|
|
-const AntDesignThemePlugin = require('antd-pro-theme-webpack-plugin');
|
|
|
-const path = require('path');
|
|
|
+import MergeLessPlugin from 'antd-pro-merge-less';
|
|
|
+import AntDesignThemePlugin from 'antd-pro-theme-webpack-plugin';
|
|
|
+import path from 'path';
|
|
|
|
|
|
-const plugin = config => {
|
|
|
+export default config => {
|
|
|
// 将所有 less 合并为一个供 themePlugin使用
|
|
|
const outFile = path.join(__dirname, '../.temp/ant-design-pro.less');
|
|
|
const stylesDir = path.join(__dirname, '../src/');
|
|
|
@@ -26,5 +26,3 @@ const plugin = config => {
|
|
|
},
|
|
|
]);
|
|
|
};
|
|
|
-
|
|
|
-module.exports = plugin;
|