modern only build
See original GitHub issueWhat 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:
- Created 4 years ago
- Reactions:38
- Comments:21 (1 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
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.
First, modify .browserslistrc:
Then, execute npm run build and CMD output:
Finally, I get “modern only build”!!!