Browse Source

docs: add 0.4.3 changelog

pull/22/head
tangjinzhou 7 years ago
parent
commit
6a9072d17f
  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 ## 0.4.2
`2018-04-24` `2018-04-24`

7
CHANGELOG.zh-CN.md

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

4
antd-tools/gulpfile.js

@ -78,12 +78,12 @@ function babelify (js, modules) {
let stream = js.pipe(babel(babelConfig)) let stream = js.pipe(babel(babelConfig))
.pipe(through2.obj(function z (file, encoding, next) { .pipe(through2.obj(function z (file, encoding, next) {
this.push(file.clone()) 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) const content = file.contents.toString(encoding)
file.contents = Buffer.from(content file.contents = Buffer.from(content
.replace(/\/style\/?'/g, '/style/css\'') .replace(/\/style\/?'/g, '/style/css\'')
.replace(/\.less/g, '.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) this.push(file)
next() next()
} else { } else {

Loading…
Cancel
Save