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

Minimize Bundle Size in Nuxt #157

Closed
andyfensham opened this issue Apr 14, 2020 · 4 comments
Closed

Minimize Bundle Size in Nuxt #157

andyfensham opened this issue Apr 14, 2020 · 4 comments

Comments

@andyfensham
Copy link

This is not really an issue, but I am using tiptap-vuetify in nuxt and my bundle size is very big. I would like to see if I can reduce it, but don't know how.

@tvld
Copy link

tvld commented Apr 14, 2020

What is very big? I also use nuxt and I have about 3MB in total... Seems ok to me ?

@mrfrase3
Copy link
Contributor

mrfrase3 commented May 4, 2020

Hey, just looked into this issue for our project.

The main bundle isn't being optimised in the releases, causing it to be ~ 900kB, It seems nuxt wont try to optimise it if it is over 500kB, a fix is to use the common.js bundle instead (~390kB):

import { TiptapVuetifyPlugin } from 'tiptap-vuetify/dist/bundle-cjs';

or clone locally, add optimize: true for bundle-esm.js in the rollup.config.js file, and run the build, you can then use the smaller (~340kB) /dist/bundle-esm.js file.

mrfrase3 added a commit to mrfrase3/tiptap-vuetify that referenced this issue May 4, 2020
This file isn't being optimized, causing issues in bundlers (iliyaZelenko#157)

Further recommendations would be to break out languages and plugins, but that might be breaking/not so simple.
iliyaZelenko pushed a commit that referenced this issue May 8, 2020
This file isn't being optimized, causing issues in bundlers (#157)

Further recommendations would be to break out languages and plugins, but that might be breaking/not so simple.

re #157
iliyaZelenko pushed a commit that referenced this issue May 8, 2020
## [2.16.1](v2.16.0...v2.16.1) (2020-05-08)

### Bug Fixes

* optimize main build file ([#169](#169)) ([a15c4a1](a15c4a1)), closes [#157](#157) [#157](#157)
@iliyaZelenko
Copy link
Owner

Bundle is optimized in #169

@tvld
Copy link

tvld commented May 11, 2020

Great, thanks ))

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

No branches or pull requests

4 participants