Skip to content

Commit dbbebb4

Browse files
committed
docs: add 0.4.3 changelog
1 parent 5c3a108 commit dbbebb4

File tree

3 files changed

+16
-2
lines changed

3 files changed

+16
-2
lines changed

CHANGELOG.en-US.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,13 @@
22

33
---
44

5+
## 0.4.3
6+
7+
`2018-05-02`
8+
9+
- 🐞 Fix component style loss problem
10+
- 🌟 site add babel-polyfill
11+
512
## 0.4.2
613

714
`2018-04-24`

CHANGELOG.zh-CN.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,13 @@
22

33
---
44

5+
## 0.4.3
6+
7+
`2018-05-02`
8+
9+
- 🐞 修复组件样式丢失问题
10+
- 🌟 站点添加babel-polyfill
11+
512
## 0.4.2
613

714
`2018-04-24`

antd-tools/gulpfile.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,12 +78,12 @@ function babelify (js, modules) {
7878
let stream = js.pipe(babel(babelConfig))
7979
.pipe(through2.obj(function z (file, encoding, next) {
8080
this.push(file.clone())
81-
if (file.path.match(/\/style\/index\.js/)) {
81+
if (file.path.match(/\/style\/index\.(js|jsx)$/)) {
8282
const content = file.contents.toString(encoding)
8383
file.contents = Buffer.from(content
8484
.replace(/\/style\/?'/g, '/style/css\'')
8585
.replace(/\.less/g, '.css'))
86-
file.path = file.path.replace(/index\.js/, 'css.js')
86+
file.path = file.path.replace(/index\.(js|jsx)$/, 'css.js')
8787
this.push(file)
8888
next()
8989
} else {

0 commit comments

Comments
 (0)