Browse Source

Merge pull request #241447 in DEC/fineui from master to feature/x

* commit '4b4eb17202e8de3e6d95f85c0cb788631385555b':
  update readme.md
  无JIRA 自定义less变量支持
research/test
superman 1 year ago
parent
commit
3eac459f6d
  1. 15
      README
  2. 3
      packages/fineui/package.json
  3. 3
      packages/fineui/webpack/attachments.js

15
README

@ -13,14 +13,21 @@ http://fanruan.design/doc.html?post=0169cf558d
## 开发 ## 开发
pnpm run dev `pnpm run dev`
* demo: [http://localhost:3000/](http://localhost:3000/) * demo: [http://localhost:3000/](http://localhost:3000/)
* fineui: [http://localhost:9001/fineui.js](http://localhost:9001/fineui.js) * fineui: [http://localhost:9001/fineui.js](http://localhost:9001/fineui.js)
## 构建 ## 构建
pnpm run build `pnpm run build`
## 自定义less变量构建
```
cd ./packages/fineui
cross-env LESS_CONFIG_PATH=your_less_config.json LESS_FILE_NAME=your_file_name pnpm --filter @fui/core webpack:css
```
## 发布 ## 发布
@ -28,4 +35,4 @@ pnpm run build
License License
============ ============
Please refer to [LICENSE](https://code.fanruan.com/fanruan/fineui/src/branch/master/LICENSE) file. Please refer to [LICENSE](https://code.fanruan.com/fanruan/fineui/src/branch/master/LICENSE) file.

3
packages/fineui/package.json

@ -23,6 +23,7 @@
"dev:fineui": "webpack-dev-server --progress --config=webpack/webpack.dev.js", "dev:fineui": "webpack-dev-server --progress --config=webpack/webpack.dev.js",
"build": "tsc && run-p build:*", "build": "tsc && run-p build:*",
"build:es": "babel src -d dist/lib --config-file ./esm.babel.js", "build:es": "babel src -d dist/lib --config-file ./esm.babel.js",
"webpack:css": "webpack --progress --config=webpack/webpack.css.js --mode production",
"build:fineui": "webpack --progress --config=webpack/webpack.prod.js", "build:fineui": "webpack --progress --config=webpack/webpack.prod.js",
"prepublishToPrivate": "npm run build && node ./lib/prepublish.js", "prepublishToPrivate": "npm run build && node ./lib/prepublish.js",
"publishToPrivate": "npm publish", "publishToPrivate": "npm publish",
@ -57,4 +58,4 @@
"core-js": "^3.30.2", "core-js": "^3.30.2",
"cross-env": "^7.0.3" "cross-env": "^7.0.3"
} }
} }

3
packages/fineui/webpack/attachments.js

@ -42,5 +42,6 @@ const fineuiForWorker = [].concat(
module.exports = { module.exports = {
fineui: uniq(fineui), fineui: uniq(fineui),
fineuiForWorker: uniq(fineuiForWorker) fineuiForWorker: uniq(fineuiForWorker),
bundleCss,
}; };

Loading…
Cancel
Save