Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

@imported stylesheets reloaded relative to html document not relative to parent stylesheet, resulting in 404

オープン
#248 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
3/5
見積もり時間
1〜2日
初心者へのやさしさ
42/100
issue の種類
バグ
明瞭さ
おおむね明確
活発さ
停滞
技術スタック
python
領域
devtools, web-dev

調査の方向性

Start with the reproduction using index.html, css/style.css, and css/import.css, then trace how Server.watch and serve handle the imported stylesheet. Verify the reload request preserves the parent stylesheet's css/ path, and confirm touching css/import.css no longer requests /import.css.

索引モデルが issue の本文から書いたものです。

説明

$ cat index.html 
<!DOCTYPE html>
<html><head><link rel="stylesheet" href="css/style.css" type="text/css"></head><body></body></html>

$ cat css/style.css 
@import url("import.css")

$ cat css/import.css 
/* imported */

$ python3 -c 'from livereload import Server, shell; server = Server(); server.watch("."); server.serve();'
[I 210604 10:20:55 server:335] Serving on http://127.0.0.1:5500

When I now do touch css/import.css, livereload attempts to reload /import.css?livereload=1622798509993 instead of /css/import.css?livereload=1622798509993.

主要言語
Python
スター
1.1k
フォーク
149
PR マージ指標
30日以内にマージされた PR はありません

環境構築

このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

lepture/python-livereload のほかの issue

lepture/python-livereload の issue をすべて見る

似ている issue

Python の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。