0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 1 year has passed since last update.

消したはずのscssファイルがブラウザで反映され続けていた話

Posted at

はじめに

scssファイルを編集したのに、ブラウザ(Chrome)で反映されない、ということがありました。
初めて遭遇した現象だったので、勉強になりました。

起きたこと

scssファイルを編集したのに、ブラウザ(Chrome)で反映されなかった。
scssを削除したりしても、効き続けてしまっていました。

対処法をググって以下を試したのですが、反映されず、、、

  • webpack serverの再起動
  • rails serverの再起動
  • ブラウザキャッシュクリア
  • PC再起動

結論としては、
tmp/cacheディレクトリを削除 でとりあえず解決しました。
過去にコンパイルした古いファイルが残ってしまっていた、ということだったのでしょうか。

最後に

なぜこうなったのかきちんと理解はできていないんですが、とりあえずの対処法として,自分用のメモも兼ねて記載しておきます。

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?