API: The modern Property
- Type: or
Boolean
- Default: false
- Possible values:
'server'
or : The Node.js server will check browser version based on the user agent and serve the corresponding modern or legacy bundle.false
: Disable modern build
- Modern bundle: targeting modern browsers that support ES modules
- Use command option
[—modern | -m]=[mode]
to build/start modern bundles, for example: inpackage.json
:
- Nuxt will automatically detect build in
nuxt start
whenmodern
is not specified, auto-detected mode is:
- Modern mode for
nuxt generate
can only beclient