why is webpack bundling extra files?

This question got answered on Vue Forum so I’m posting the answer here as well


vue inspect --mode production

will show the Webpack configuration that Vue CLI is generating. It ends up with:

entry: {
  app: [
  activitySubmit: './src/as-setup.js'

because as explained in vue docs, the configuration you provide in configureWebpack is merged using webpack-merge, so the default entry is still present.

CLICK HERE to find out more related problems solutions.

Leave a Comment

Your email address will not be published.

Scroll to Top