Choose one: is this a 馃悰 bug report or 馃檵 feature request?
I think it's a bug
1) If a HTML file links to index.js and index.js import index.css, parcel will insert a link tag in the generated HTML. Everything works fine. 馃憤
2) However, if index.js initially doesn't import index.css and instead the css file is created and imported in index.js after running Parcel, a css bundle is correctly generated but not inserted in the generated HTML files. 馃槩
no babel configuration.
a new link tag is inserted into the generated HTML and points to the newly generated CSS bundle
The generated HTML file does not link to the generated CSS bundle
Not sure. Maybe detecting cases like this and re-generating the HTML accordingly? I see some relevant logic in HTMLPackage.js but it's not rerun in this case.
I sometimes start a project without CSS and only create them and import them after I started running Parcel. Currently I have to restart Parcel after doing that to make it work.
| Software | Version(s) |
| ---------------- | ---------- |
| Parcel | 1.7.1
| Node | 8.9.1
| npm/Yarn | 1.5.1
| Operating System | MacOS
Just got the same problem.
Oh change parcel build index.js to parcel build index.html works.
Yup, I have the same issue. Wasted about 20 minutes trying to figure out what I was doing wrong until I realized I needed to restart.
Most helpful comment
Just got the same problem.
Oh change
parcel build index.jstoparcel build index.htmlworks.