docs: add 0.4.3 changelog
parent
5c3a108a71
commit
dbbebb402e
|
@ -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`
|
||||
|
|
|
@ -2,6 +2,13 @@
|
|||
|
||||
---
|
||||
|
||||
## 0.4.3
|
||||
|
||||
`2018-05-02`
|
||||
|
||||
- 🐞 修复组件样式丢失问题
|
||||
- 🌟 站点添加babel-polyfill
|
||||
|
||||
## 0.4.2
|
||||
|
||||
`2018-04-24`
|
||||
|
|
|
@ -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…
Reference in New Issue