akveo / akveo/nebular

Angular prod build fails when $nb-enable-css-custom-properties and inlineCritical setting is true

Đang mở
#2,675 5 bình luận 0 reaction 0 người được giao Xem trên GitHub
Ngôn ngữ chính
TypeScript
Star
8.1k
Fork
1.5k
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Mô tả

### Issue type

**I'm submitting a ...**

* [X] bug report
* [ ] feature request

### Issue description

**Current behavior:**
The build fails with the error message: `✖ Index html generation failed.
undefined:16:372306: property missing ':'`

**Expected behavior:**
The build should succeed

**Steps to reproduce:**
1. Create a new Angular 11.2 project
2. Set $nb-enable-css-custom-properties to true
2. Enable inlineCritical optimization in angular.json
3. Run a production build with `ng build --prod`
4. The error occurs after `Copying assets complete` message

The error does not occur when you either disable inlineCritical optimization or set $nb-enable-css-custom-properties to false

### Other information:

**npm, node, OS**
```
Node: 12.16.2
npm: 6.14.4
OS: macOS Big Sur 11.2.1
```

**Angular, Nebular**
```
angular: 11.2.0
nebular: 7.0.0
```

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.