Hot reloading a CSS file not working

Hi! When I modify a css file in my project, the app reloads automatically and I get the "Extension re-packaged" as in my .tsx files, but the web page where my extension is running doesn't reload. Reloading the web page doesn't do anything, and I have to restart the development server to be able to see the new style. Is this something I can configure somewhere? In general, I did not see where I could configure Plasmo to see or modify which folders it observes when hot-reloading. Thank you for your help!
5 Replies
tetec1
tetec1OPβ€’2y ago
@louis any idea what's going on here? πŸ™‚
lab
labβ€’2y ago
@tetec1 I'd try again, maybe with the verbose flag
tetec1
tetec1OPβ€’2y ago
hmm no, I removed the verbose flag but I get the same behavior I have to reload manually when I modify css files, tsx are fine
lab
labβ€’2y ago
where are these css files located btw? outside of the plasmo project?
tetec1
tetec1OPβ€’2y ago
in src/styles:
β”œβ”€β”€ src
β”‚Β Β  β”œβ”€β”€ components
β”‚Β Β  β”‚Β Β  β”œβ”€β”€ countButton.tsx
β”‚Β Β  β”‚Β Β  β”œβ”€β”€ main.tsx
β”‚Β Β  β”‚Β Β  └── settings
β”‚Β Β  β”‚Β Β  β”œβ”€β”€ SettingsButton.tsx
β”‚Β Β  β”‚Β Β  └── SettingsTooltip.tsx
β”‚Β Β  β”œβ”€β”€ contents
β”‚Β Β  β”‚Β Β  └── Settings.tsx
β”‚Β Β  β”œβ”€β”€ pages
β”‚Β Β  β”‚Β Β  └── index.tsx
β”‚Β Β  β”œβ”€β”€ popup
β”‚Β Β  β”‚Β Β  └── index.tsx
β”‚Β Β  └── styles
β”‚Β Β  β”œβ”€β”€ SettingsButton.scss
β”‚Β Β  β”œβ”€β”€ base.css
β”‚Β Β  └── style.css
β”œβ”€β”€ src
β”‚Β Β  β”œβ”€β”€ components
β”‚Β Β  β”‚Β Β  β”œβ”€β”€ countButton.tsx
β”‚Β Β  β”‚Β Β  β”œβ”€β”€ main.tsx
β”‚Β Β  β”‚Β Β  └── settings
β”‚Β Β  β”‚Β Β  β”œβ”€β”€ SettingsButton.tsx
β”‚Β Β  β”‚Β Β  └── SettingsTooltip.tsx
β”‚Β Β  β”œβ”€β”€ contents
β”‚Β Β  β”‚Β Β  └── Settings.tsx
β”‚Β Β  β”œβ”€β”€ pages
β”‚Β Β  β”‚Β Β  └── index.tsx
β”‚Β Β  β”œβ”€β”€ popup
β”‚Β Β  β”‚Β Β  └── index.tsx
β”‚Β Β  └── styles
β”‚Β Β  β”œβ”€β”€ SettingsButton.scss
β”‚Β Β  β”œβ”€β”€ base.css
β”‚Β Β  └── style.css
but I had this issue in other folders too, I moved them to a styles folder based on your advice from another thread Unfortunately this problem persists.
Want results from more Discord servers?
Add your server