Browse Source

KERNEL-14316 fix:打包调整

es6
Treecat 2 years ago
parent
commit
f459a37e8a
  1. 2
      packages/demo/package.json
  2. 5
      packages/fineui/package.json
  3. 3
      packages/fineui/webpack/webpack.common.js

2
packages/demo/package.json

@ -11,6 +11,6 @@
"author": "",
"license": "ISC",
"dependencies": {
"@fui/core": "workspace:^2.0.20230208163847"
"@fui/core": "workspace:*"
}
}

5
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"

3
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) || {} : {};
}

Loading…
Cancel
Save