parcel
parcel copied to clipboard
When changing bundle-text imported css there is no hot styling reloading happening
🐛 bug report
- Download attached .zip
-
npm install
-
npm run serve
- Use tampermonkey/devtools/a chrome extension to inject a script with src
http://localhost:1234/main.js
into a page. - 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) |