meteor-feature-requests icon indicating copy to clipboard operation
meteor-feature-requests copied to clipboard

How to not build web.browser and web.browser.legacy, build only server

Open crapthings opened this issue 5 years ago • 7 comments

build server-only are include web.browser and web.browser.legacy

want to save some build time that build server only

crapthings avatar Aug 07 '20 10:08 crapthings

You can do it by using exclude-archs

meteor --exclude-archs web.browser.legacy,web.browser

schlaegerz avatar Aug 14 '20 16:08 schlaegerz

@schlaegerz i don't think the --exclude-archs flag applies to meteor build, only meteor run

hexsprite avatar Aug 14 '20 16:08 hexsprite

I believe @sebakerckhof posted something about this option when he implemented it. I don't remember what was the conclusion.

filipenevola avatar Aug 19 '20 14:08 filipenevola

Correct. It wouldn't be too hard to also make it work for production builds, but there's some rough edges that would need to be handled. I don't recall all of it, but for example what is the behavior if someone tries to access it? Refuse the connection or show a message? Should that message be customizable and how?

However, it's not clear if crapthings talks about dev build times or production build times.

sebakerckhof avatar Aug 19 '20 15:08 sebakerckhof

Adding my +1 to this and hoping that there can be more traction on it soon. If I recall correctly, the web.browser.legacy is mostly to support IE11, which has been deprecated and is no longer supported by Microsoft. I hope it would be considered "about time" to allow preventing a legacy browser build.

In my experience, cutting out the legacy build will cut meteor build times by anywhere from 1/2 to 2/3. On a large codebase, that could be make a huge difference on a 38 minute build...

runlevelsix avatar May 13 '21 03:05 runlevelsix

Could this PR help with this issue: https://github.com/meteor/meteor/pull/11437

StorytellerCZ avatar May 17 '21 21:05 StorytellerCZ

Yes, I think that option would be a good alternative if it supported excluding web.browser.legacy (when not explicitly added to the --platforms list). However, the most recent commit (839a69db) doesn't seem to have that distinction.

I'm looking to exclude building for legacy browsers as a way to cut down release build times significantly when using meteor build.

runlevelsix avatar May 18 '21 03:05 runlevelsix