Vue-cli: Multi part library

Created on 1 Sep 2018  路  1Comment  路  Source: vuejs/vue-cli

Thanks for the wonderful CLI first!

What problem does this feature solve?

I'm trying to build libraries with @vue/cli. I wanna know if it's possible to build a multi part library that can import sub-library directly like import subLib from 'my-lib/sub-lib'?

For now I can only build single file library with common and umd by using --target lib.

What does the proposed API look like?

Maybe determine this from webpack entry?

Most helpful comment

you will have to run separate build commands for those sub libs, with a different entry and output path.

the build command has a --no-clean flag so that the other build commands won't remove the results of the previous ones.

If you want to go into more detail, please use forum.vuejs.org or chat.vuejs.org

>All comments

you will have to run separate build commands for those sub libs, with a different entry and output path.

the build command has a --no-clean flag so that the other build commands won't remove the results of the previous ones.

If you want to go into more detail, please use forum.vuejs.org or chat.vuejs.org

Was this page helpful?
0 / 5 - 0 ratings

Related issues

chasegiunta picture chasegiunta  路  3Comments

Benzenes picture Benzenes  路  3Comments

joshuajohnson814 picture joshuajohnson814  路  3Comments

Gonzalo2683 picture Gonzalo2683  路  3Comments

jgribonvald picture jgribonvald  路  3Comments