'vue-cli-service build not read custom entry points

i trying to build three different components with vue-cli-service.

here is my vue.config.js file:

  chainWebpack: config => {
        
    config.entryPoints
  .delete('app')

    config.entry('component1')
        .add('./src/components/component1.vue')

    config.entry('component2')
        .add('./src/components/component2.vue')

    config.entry('component3')
        .add('./src/components/component3.vue')

}

but when in run vue-cli-service build --target lib command i get this error:

Failed to resolve lib entry: src/App.vue (default). Make sure to specify the correct entry file.

how can i remove default entry? i have tried config.entryPoints.delete('app') but it dose not work.



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source