Browse Source

docs: add 0.4.3 changelog

pull/165/head
tangjinzhou 7 years ago
parent
commit
dbbebb402e
  1. 7
      CHANGELOG.en-US.md
  2. 7
      CHANGELOG.zh-CN.md
  3. 4
      antd-tools/gulpfile.js

7
CHANGELOG.en-US.md

@ -2,6 +2,13 @@
---
## 0.4.3
`2018-05-02`
- 🐞 Fix component style loss problem
- 🌟 site add babel-polyfill
## 0.4.2
`2018-04-24`

7
CHANGELOG.zh-CN.md

@ -2,6 +2,13 @@
---
## 0.4.3
`2018-05-02`
- 🐞 修复组件样式丢失问题
- 🌟 站点添加babel-polyfill
## 0.4.2
`2018-04-24`

4
antd-tools/gulpfile.js

@ -78,12 +78,12 @@ function babelify (js, modules) {
let stream = js.pipe(babel(babelConfig))
.pipe(through2.obj(function z (file, encoding, next) {
this.push(file.clone())
if (file.path.match(/\/style\/index\.js/)) {
if (file.path.match(/\/style\/index\.(js|jsx)$/)) {
const content = file.contents.toString(encoding)
file.contents = Buffer.from(content
.replace(/\/style\/?'/g, '/style/css\'')
.replace(/\.less/g, '.css'))
file.path = file.path.replace(/index\.js/, 'css.js')
file.path = file.path.replace(/index\.(js|jsx)$/, 'css.js')
this.push(file)
next()
} else {

Loading…
Cancel
Save