Skip to content

Commit

Permalink
Merge b3dc46d into 02d8832
Browse files Browse the repository at this point in the history
  • Loading branch information
srhb18 committed Sep 19, 2018
2 parents 02d8832 + b3dc46d commit 57bc8aa
Show file tree
Hide file tree
Showing 5 changed files with 27 additions and 2 deletions.
3 changes: 3 additions & 0 deletions HISTORY.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
HISTORY
---
## 0.2.6

* `CHANGED` support js style export

## 0.2.5

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "uxcore-crumb",
"version": "0.2.5",
"version": "0.2.6",
"description": "crumb-uxcore component for uxcore.",
"repository": "https://github.com/uxcore/uxcore-crumb.git",
"author": "peijie.dpj",
Expand Down
4 changes: 3 additions & 1 deletion src/Crumb.less
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,9 @@
* All rights reserved.
*/

.kuma-uxcrumbs {
@__crumbsPrefixCls: kuma-uxcrumbs;

.@{__crumbsPrefixCls} {
a,span {
margin-right: 8px;
display: inline-block;
Expand Down
1 change: 1 addition & 0 deletions style/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
import '../src/Crumb.less';
19 changes: 19 additions & 0 deletions webpack.custom.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
const modifyVars = require('kuma-base/jsvars/orange');

/* eslint-disable no-param-reassign */
module.exports = (config) => {
config.module.rules.forEach((rule) => {
if (rule.test.toString() === /\.less$/.toString()) {
rule.use = [
'style-loader',
'css-loader',
{
loader: 'less-loader',
options: {
modifyVars,
},
},
];
}
});
};

0 comments on commit 57bc8aa

Please sign in to comment.