Build Export Support #47
Replies: 2 comments 6 replies
-
That's the problem with Parcel @decanTyme that's why I'm looking into ways to export builds "as is" without any web server needed. I normally achieve this with GulpJS a simple compressed/minified build and then package it as a zip. I'm looking for the same thing in Parcel well this is my first time to use parcel in my open source project I have normally used GulpJS before. I'm currently thinking of adding GulpJS to the workflow with Parcel. My mind told me that it might be redundant. I'm really not sure regarding this. |
Beta Was this translation helpful? Give feedback.
-
Issue #10 is now open to the public and potential contributors. |
Beta Was this translation helpful? Give feedback.
-
Almost didn't realize I had commented on a maintainers-only issue (#10) so I'm gonna move this here:
I think we can just export and compress Parcel builds since they do contain the necessary
html
file, then it's up to the user how they will serve/showcase their exported builds. They can just open it manually in a browser if they like, tho when I tried to it didn't work until I manually corrected thesrc
paths and removedtype="module"
from the<script>
tag in theindex.html
because:But if they serve it with a local server it should be fine. They can also just directly edit these builds since it should contain all necessary deps, albeit being minified.
It's just a simple manual correction but if you do want this to be as open as possible to the non-technical then it would need have some sort of postbuild script to mitigate the issue above. Or something like Web Server for Chrome. I don't see any other solutions as of yet.
What are your thoughts on this? How would they get their builds?
Beta Was this translation helpful? Give feedback.
All reactions