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

Optimisation nuxt build #980

Open
derpdead opened this issue Jul 21, 2021 · 0 comments
Open

Optimisation nuxt build #980

derpdead opened this issue Jul 21, 2021 · 0 comments
Assignees
Labels
performance (type) Performance improvements

Comments

@derpdead
Copy link
Contributor

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$/),
]
@derpdead derpdead added the performance (type) Performance improvements label Jul 21, 2021
@derpdead derpdead self-assigned this Jul 21, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
performance (type) Performance improvements
Projects
None yet
Development

No branches or pull requests

1 participant