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. 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)
## 构建
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
============
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",
"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",
@ -57,4 +58,4 @@
"core-js": "^3.30.2",
"cross-env": "^7.0.3"
}
}
}

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