Browse Source

Pull request #3621: 无JIRA 去less.config.json路径改成和以前一样

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

* commit '895ede189f5cbf956f9f8fd61dbca8ac37a454f7':
  更新readme
  无JIRA 去less.config.json路径改成和以前一样
research/test
Dailer-刘荣歆 1 year ago
parent
commit
9f6f1e0565
  1. 5
      README
  2. 0
      packages/fineui/bi.lessconfig.json
  3. 0
      packages/fineui/jsy.lessconfig.json
  4. 2
      packages/fineui/webpack/webpack.common.js

5
README

@ -23,9 +23,12 @@ http://fanruan.design/doc.html?post=0169cf558d
`pnpm run build` `pnpm run build`
## 自定义less变量构建 ## 自定义less变量构建
```
cross-env LESS_CONFIG_PATH=your_less_config.json && pnpm build
```
## 构建自定义的css
``` ```
cd ./packages/fineui
cross-env LESS_CONFIG_PATH=your_less_config.json LESS_FILE_NAME=your_file_name pnpm --filter @fui/core webpack:css cross-env LESS_CONFIG_PATH=your_less_config.json LESS_FILE_NAME=your_file_name pnpm --filter @fui/core webpack:css
``` ```

0
packages/fineui/lessconfig/bi.lessconfig.json → packages/fineui/bi.lessconfig.json

0
packages/fineui/lessconfig/jsy.lessconfig.json → packages/fineui/jsy.lessconfig.json

2
packages/fineui/webpack/webpack.common.js

@ -14,7 +14,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, process.env.LESS_CONFIG_PATH); : path.resolve(__dirname, "../", process.env.LESS_CONFIG_PATH);
lessVariables = fs.existsSync(lessConfigPath) ? require(lessConfigPath) || {} : {}; lessVariables = fs.existsSync(lessConfigPath) ? require(lessConfigPath) || {} : {};
} }

Loading…
Cancel
Save