# css-issue **Repository Path**: bailuoo/css-issue ## Basic Information - **Project Name**: css-issue - **Description**: 这是一个最小的工程,演示刚好的问题。 另外,我在开源中国发了一个悬赏150,如果您解决了,请去那里提交,我就把悬赏给您了 https://zb.oschina.net/workbench/reward/manager.html#/detail?id=14571941 - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2024-07-04 - **Last Updated**: 2024-07-04 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # css-issue # 介绍 这是一个最小的工程,演示刚好的问题。 另外,我在开源中国发了一个悬赏150,如果您解决了,请去那里提交,我就把悬赏给您了 https://zb.oschina.net/workbench/reward/manager.html#/detail?id=14571941 # 问题现象 import './xx.css' 之后,会报下面的错误 ```tsx ▲ [WARNING] Ignoring this import because "src/pages/demo1/style.css" was marked as having no side effects [ignored-bare-import] src/pages/demo1/index.tsx:1:7: 1 │ import './style.css' ╵ ~~~~~~~~~~~~~ ``` 因为我要去覆盖一些其它组件的样式,所以我没法使用 `import xx from './aa.css` 的方式