parcel icon indicating copy to clipboard operation
parcel copied to clipboard

When changing bundle-text imported css there is no hot styling reloading happening

Open danieltroger opened this issue 3 years ago • 6 comments

🐛 bug report

  1. Download attached .zip
  2. npm install
  3. npm run serve
  4. Use tampermonkey/devtools/a chrome extension to inject a script with src http://localhost:1234/main.js into a page.
  5. Edit src/my.css

-> nothing happens

🎛 Configuration (.babelrc, package.json, cli command)

See .zip file

🤔 Expected Behavior

Either somehow the code inserting the styling magically gets reran or the page just reloaded.

😯 Current Behavior

Some code for bundling style assets with a HTML page is ran and removes and re-adds all elements to the page but it doesn't help - nothing happens

💁 Possible Solution

Simplest solutions is to just reload the page, the same that happens if you edit src/main.ts

🔦 Context

Have script with bundle-text'ed css, need to manually reload each time.

💻 Code Sample

parcel-no-bundle-text-css-hmr.zip

🌍 Your Environment

Software Version(s)
Parcel 2.0.0-nightly.729+e63235f3
Node v16.3.0
npm/Yarn npm 7.15.1
Operating System macOS 10.15.7 (19H1217)

danieltroger avatar Jun 22 '21 21:06 danieltroger