Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Replace Parcel (or write a Parcel plugin to copy a list of static files) #2487

Closed
roblarsen opened this issue Mar 25, 2021 · 5 comments · Fixed by #2641
Closed

Replace Parcel (or write a Parcel plugin to copy a list of static files) #2487

roblarsen opened this issue Mar 25, 2021 · 5 comments · Fixed by #2641
Assignees
Milestone

Comments

@roblarsen
Copy link
Member

roblarsen commented Mar 25, 2021

https://v2.parceljs.org/getting-started/migration

There are security alerts related to parcel, which we can't remediate with the existing (deprecated) v1 package. We should update it if the new version also allows us to solve #2474 If not, something else?

We have some open issues with main.css and create-html5-boilerplate as well, so maybe this is a proper release point coming together.

@coliff
Copy link
Member

coliff commented Mar 25, 2021

I've been thinking about this too. Parcel v2's development appeared to have stalled a bit without an update since June 2020 - which made me hesitant to consider suggesting that we switch to it, but it looks like there was a Beta 2 last week. It's still 'Beta' though, so I'm not sure if that's something we should consider including with H5BP until it has a stable release.

There's https://github.com/vitejs/vite which could be considered too. I've personally not used it, but the feature-set looks great.

In any case, I'm keen to move away from using Parcel v1.

@vltansky
Copy link
Member

+1 for vite

Also vite have something similar to create-html5-boilerplate https://github.com/vitejs/vite/tree/main/packages/create-app

@coliff
Copy link
Member

coliff commented Aug 4, 2021

Parcel v2 Release Candidate 1 has just dropped!
https://v2.parceljs.org/blog/rc0/
As I mentioned earlier in the year, I was hesitant to switch to Parcel v2 while it was still in Beta as there could be more breaking changes but now its at a Release Candidate stage it should be pretty safe to think about upgrading to it. It fixes a lot of issues and has many improvements.

@roblarsen
Copy link
Member Author

Oh, we should try it out, that would be great.

roblarsen added a commit that referenced this issue Aug 16, 2021
Closes #2487 (although we should discuss whether or not we want to wait for the full release of 2.0.0)
@roblarsen roblarsen added this to the v9.0.0 milestone Aug 16, 2021
@roblarsen roblarsen changed the title Upgrade Parcel (or... something else.) Replace Parcel Nov 2, 2021
@roblarsen roblarsen changed the title Replace Parcel Replace Parcel (or write a Parcel plugin to copy a list of static files) Nov 2, 2021
@roblarsen
Copy link
Member Author

#2581 drove me crazy, so at this point I'm voting we come up with a replacement for parcel. The stuff parcel does is great and would serve as a nice foundation for someone looking to dip their toes into modern app development. The thing is, I can't tell the stupid thing to copy files not referenced in the HTML without writing a plugin, so a bunch of files we would want to ship are not getting picked up in the build process. Deal-breaker, as far as I'm concerned. Hashing the favicon was pretty bad, but not even copying it is worse.

The two options I see are:

  1. write the stupid plugin to take a list of files and copy them
  2. Use something more configurable and use it as an opportunity to create a baseline configuration for people to work from

roblarsen added a commit that referenced this issue Nov 17, 2021
Closes #2487 and #2474

This is just a development server at this point. It hot reloads HTML JS and CSS.  That's enough for me. I'm open to contrary opinions.
roblarsen added a commit that referenced this issue Nov 30, 2021
* Proposal: Let's Replace Parcel With Webpack

Closes #2487 and #2474

This is just a development server at this point. It hot reloads HTML JS and CSS.  That's enough for me. I'm open to contrary opinions.

* Updates based on @coliff review

* wip

* fix merge conflict

* removing comment

* Final tweaks to docs
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants