alibaba / alibaba/ice

webpack模式下,如果开启了hash, css的热更新会失效, 关闭hash则能够正常热更新

Open
#5,331 0 comments 0 reactions 1 assignee Claimed by @ClarkXia View on GitHub
bug
Dominant language
TypeScript
Stars
18.6k
Forks
2.1k
PR merge metrics
No merged PRs in 30d

Description

## What is the current behavior? 发生了什么?
css 热更新失效,改变css之后,必须要手动点击刷新浏览器按钮才可以看拿到css的变化

在webpack模式下,build.json中设置hash: contenthash之后,开发模式下css的热更新会失败。

## What is the expected behavior? 期望的结果是什么?
期望css的热更新正常,记得之前自己配置webpack的时候,contenthash设置之后,在开发环境下css是可以热更新的

## Any additional comments? 相关环境信息?

- **ice.js Version**:
- 2.6.1
- **build.json Configuration**:
- "hash": "contenthash"
- **Node Version**:
- 16.13.1
- **Platform**:
- mac os

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.