A
A
Artem2019-06-16 10:10:44
webpack
Artem, 2019-06-16 10:10:44

How to minify a Vue assembly?

I use the following stack in my work: vuejs + elementio + grpc-web, packaged with webpack.
The output is js bundles about 7 MB in development mode and 1.5 MB after minification in production.
I tried to import elementio component by component, but somehow I didn’t notice much difference. Perhaps somehow I imported it wrong, although everything worked.
Question: how to reduce the output bundle size?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
AlexisKmetik, 2019-06-16
@devspec

For now, ssr will help just to avoid the visible loading of the bundle.
Further minification will not bring profit.
Waiting for time slicing in 3.0

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question