Skip to content
This repository was archived by the owner on Feb 13, 2023. It is now read-only.
This repository was archived by the owner on Feb 13, 2023. It is now read-only.

Optimisation nuxt build #980

Open
Open
@derpdead

Description

@derpdead

Motivation

  • Current build is taking too long - about 1-2minutes.
  • Bundle size is about 3.62mb
  • Same components are imported into multiple chunks
  • Chartjs is importing moment locales

Implementation

  • Import UI components globally
Vue.component(NAME, IMPORT);
  • Exclude moment locales from the build:
 plugins: [
      new webpack.IgnorePlugin(/^\.\/locale$/, /moment$/),
]

Metadata

Metadata

Assignees

Labels

performance(type) Performance improvements

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions