From 4d3fe37af13fdbf11def47d1d28474773c355940 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=99=88=E5=B8=85?= Date: Tue, 21 Aug 2018 16:47:20 +0800 Subject: [PATCH] Optimization less compile time --- config/plugin.config.js | 3 +-- package.json | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/config/plugin.config.js b/config/plugin.config.js index 27879fdd..ed25dd95 100644 --- a/config/plugin.config.js +++ b/config/plugin.config.js @@ -21,8 +21,7 @@ const plugin = config => { antDir: path.join(__dirname, '../node_modules/antd'), stylesDir, varFile: path.join(__dirname, '../node_modules/antd/lib/style/themes/default.less'), - mainLessFile: outFile, - themeVariables: ['@primary-color'], + mainLessFile: outFile, // themeVariables: ['@primary-color'], indexFileName: 'index.html', }, ]); diff --git a/package.json b/package.json index fbb7a4e3..78e1bcea 100755 --- a/package.json +++ b/package.json @@ -52,7 +52,7 @@ "@babel/polyfill": "^7.0.0-beta.53", "@types/react": "^16.4.11", "@types/react-dom": "^16.0.6", - "antd-pro-merge-less": "^0.0.3", + "antd-pro-merge-less": "^0.0.6", "antd-theme-webpack-plugin": "^1.0.8", "babel-eslint": "^8.2.6", "babel-runtime": "^6.9.2", -- GitLab