From ae6fdde7d428d720194a43bf039e6f9337d99926 Mon Sep 17 00:00:00 2001 From: Treecat Date: Sun, 23 Apr 2023 10:37:12 +0800 Subject: [PATCH] =?UTF-8?q?KERNEL-14316=20fix:=E6=89=93=E5=8C=85=E8=B0=83?= =?UTF-8?q?=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/fineui/package.json | 5 +---- packages/fineui/webpack/webpack.common.js | 3 +-- 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/packages/fineui/package.json b/packages/fineui/package.json index 3e53fb9b1..ff7314dd6 100644 --- a/packages/fineui/package.json +++ b/packages/fineui/package.json @@ -24,10 +24,7 @@ "dev": "tsc && babel src -d dist/es --config-file ./esm.babel.js -w", "build": "tsc && run-p build:*", "build:es": "babel src -d dist/es --config-file ./esm.babel.js", - "build:fineui": "webpack --progress --config=webpack/webpack.prod.js", - "webpack:css": "webpack --config=webpack/webpack.css.js --mode production", - "build:biCss": "cross-env LESS_CONFIG_PATH=lessconfig/bi.lessconfig.json LESS_FILE_NAME=bi npm run webpack:css", - "build:jsyCss": "cross-env LESS_CONFIG_PATH=lessconfig/jsy.lessconfig.json LESS_FILE_NAME=jsy npm run webpack:css" + "build:fineui": "webpack --progress --config=webpack/webpack.prod.js" }, "files": [ "dist" diff --git a/packages/fineui/webpack/webpack.common.js b/packages/fineui/webpack/webpack.common.js index 1c0d242f8..c6efd9d46 100644 --- a/packages/fineui/webpack/webpack.common.js +++ b/packages/fineui/webpack/webpack.common.js @@ -9,8 +9,7 @@ let lessVariables = {}; if (process.env.LESS_CONFIG_PATH) { const lessConfigPath = path.isAbsolute(process.env.LESS_CONFIG_PATH) ? process.env.LESS_CONFIG_PATH - : path.resolve(__dirname, "lessconfig", process.env.LESS_CONFIG_PATH); - + : path.resolve(__dirname, "../lessconfig", process.env.LESS_CONFIG_PATH); lessVariables = fs.existsSync(lessConfigPath) ? require(lessConfigPath) || {} : {}; }