Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error in NuxtOptionsBuild type declaration #9552

Closed
dmitrymorozoff opened this issue Jul 13, 2021 · 0 comments · Fixed by #9555
Closed

Error in NuxtOptionsBuild type declaration #9552

dmitrymorozoff opened this issue Jul 13, 2021 · 0 comments · Fixed by #9555

Comments

@dmitrymorozoff
Copy link

dmitrymorozoff commented Jul 13, 2021

Versions

  • nuxt: v2.15.7
  • node: v14.16.1
Additional Details
If you create a nuxt config file for typescript and describe the type for the config. In the build property, you can write the stats field from webpack and it will work. But this field is missed in the NuxtOptionsBuild type. In the stats field, you can set the sorting of chunks by size.

nuxt.config.ts

const build: NuxtOptionsBuild = {
    stats: {
        assetsSort: 'size',
    },
}

What is Expected?

Correct description of types in NuxtOptionsBuild

What is actually happening?

Incorrect description of types in NuxtOptionsBuild

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants