question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

modern only build

See original GitHub issue

What problem does this feature solve?

Allows to create modern only build. Some applications don’t need legacy build. I guess that could be achieved by proper configuration of browsersrc file, but this solution seems a bit hacky and unintuitive, and I’m not sure if it would work

What does the proposed API look like?

For example vue-cli-service build --modern="only" vue-cli-service build --modern --no-legacy vue-cli-service build --modern-only

Issue Analytics

  • State:open
  • Created 4 years ago
  • Reactions:38
  • Comments:21 (1 by maintainers)

github_iconTop GitHub Comments

14reactions
alexcrooxcommented, May 13, 2020

I would like a flag to disable legacy build so I can run both the legacy and modern builds in parallel in my continuous integration/deployment environment. This would help speed up deployments, and overcome challenges where enforced RAM limits are hit in containers when trying to build both modern and legacy at the same time.

13reactions
AceLingcommented, Feb 17, 2022

First, modify .browserslistrc:

> 1%
last 2 versions
not dead
not ie 11

Then, execute npm run build and CMD output:

All browser targets in the browserslist configuration have supported ES module. Therefore we don’t build two separate bundles for differential loading.

Finally, I get “modern only build”!!!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Modern Build in Nuxt.js - DEV Community ‍ ‍
The modern property in Nuxt.js allows you to serve both modern bundles to modern browsers and legacy bundles to those legacy browsers that ......
Read more >
Browser Compatibility | Vue CLI
This ensures only the minimum amount of polyfills are included in your final bundle. ... vue-cli-service build --modern.
Read more >
Build Modern
Q. Will you build off of other plans provided by outside architects and designers? A. Build Modern only builds plans designed by our...
Read more >
How can I prevent `vue-cli-service --modern` from building the ...
So it takes twice as long than I build the app without --modern option. It's a waste of time when the app is...
Read more >
How to Build a Modern Documentation Site with VitePress
In this tutorial, you'll learn how to build a complete docs site quickly ... with certain questions, so just complete them as appropriate....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found