Browse Source

KERNEL-14316 fix:打包调整

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

5
packages/fineui/package.json

@ -24,10 +24,7 @@
"dev": "tsc && babel src -d dist/es --config-file ./esm.babel.js -w", "dev": "tsc && babel src -d dist/es --config-file ./esm.babel.js -w",
"build": "tsc && run-p build:*", "build": "tsc && run-p build:*",
"build:es": "babel src -d dist/es --config-file ./esm.babel.js", "build:es": "babel src -d dist/es --config-file ./esm.babel.js",
"build:fineui": "webpack --progress --config=webpack/webpack.prod.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"
}, },
"files": [ "files": [
"dist" "dist"

3
packages/fineui/webpack/webpack.common.js

@ -9,8 +9,7 @@ let lessVariables = {};
if (process.env.LESS_CONFIG_PATH) { if (process.env.LESS_CONFIG_PATH) {
const lessConfigPath = path.isAbsolute(process.env.LESS_CONFIG_PATH) const lessConfigPath = path.isAbsolute(process.env.LESS_CONFIG_PATH)
? 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) || {} : {}; lessVariables = fs.existsSync(lessConfigPath) ? require(lessConfigPath) || {} : {};
} }

Loading…
Cancel
Save