Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs(cn): Fix typo Sass in src/content/loaders/sass-loader.mdx #1556

Merged
merged 1 commit into from
Jun 1, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/content/loaders/sass-loader.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ Webpack 提供一种 [解析文件的高级机制](/concepts/module-resolution/)

### `url(...)` 的问题 $#problems-with-url$

由于 Saass 的实现没有提供 [url 重写](https://github.com/sass/libsass/issues/532)的功能,所以相关的资源都必须是相对于输出文件(ouput)而言的。
由于 Sass 的实现没有提供 [url 重写](https://github.com/sass/libsass/issues/532)的功能,所以相关的资源都必须是相对于输出文件(ouput)而言的。

- 如果生成的 CSS 传递给了 `css-loader`,则所有的 url 规则都必须是相对于入口文件的(例如:`main.scss`)。
- 如果仅仅生成了 CSS 文件,没有将其传递给 `css-loader`,那么所有的 url 都是相对于网站的根目录的。
Expand Down