Exclude externals in Vue Cli Library build
Posted on May 24, 2020
You can exclude external libraries when compiling you Vue library using the command:
vue-cli-service build --target lib --name myLib src/myLib.vue
by adding in the vue.config.js
file this webpack config:
configureWebpack: {
externals: {
jquery: 'jQuery'
}
}