diff --git a/README b/README index e31dbb0f0..b050a1689 100644 --- a/README +++ b/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. \ No newline at end of file +Please refer to [LICENSE](https://code.fanruan.com/fanruan/fineui/src/branch/master/LICENSE) file. diff --git a/packages/fineui/package.json b/packages/fineui/package.json index a03894e62..d593e91b1 100644 --- a/packages/fineui/package.json +++ b/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" } -} \ No newline at end of file +} diff --git a/packages/fineui/webpack/attachments.js b/packages/fineui/webpack/attachments.js index 7e6549d83..be1d89017 100644 --- a/packages/fineui/webpack/attachments.js +++ b/packages/fineui/webpack/attachments.js @@ -42,5 +42,6 @@ const fineuiForWorker = [].concat( module.exports = { fineui: uniq(fineui), - fineuiForWorker: uniq(fineuiForWorker) + fineuiForWorker: uniq(fineuiForWorker), + bundleCss, };