Browse Source

Pull request #3610: 无JIRA 自定义less变量支持

Merge in VISUAL/fineui from ~DAILER/fineui:master to master

* commit 'cf153e85583280dce9a110b724a31bd838b592ec':
  update readme.md
  无JIRA 自定义less变量支持
research/test
Dailer-刘荣歆 1 year ago
parent
commit
4b4eb17202
  1. 11
      README
  2. 1
      packages/fineui/package.json
  3. 3
      packages/fineui/webpack/attachments.js

11
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/)
* 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
```
## 发布

1
packages/fineui/package.json

@ -23,6 +23,7 @@
"dev:fineui": "webpack-dev-server --progress --config=webpack/webpack.dev.js",
"build": "tsc && run-p build:*",
"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",
"prepublishToPrivate": "npm run build && node ./lib/prepublish.js",
"publishToPrivate": "npm publish",

3
packages/fineui/webpack/attachments.js

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

Loading…
Cancel
Save