Vue packaging and configuration at the same time: why baseUrl:'/',assetsDir:'static', packaging is not successful?

After

is configured at the same time, some static files will run outside the static file.
like here there is a css file outside:

clipboard.png

:


baseUrl staticindex.html:

clipboard.png

how can we have both?

Mar.31,2021

There are several problems with

.

  1. is your project generated using scaffolding? Or did you build it yourself
  2. Please paste the configuration code of webpack a little bit (posting more will not waste your traffic)

baseUrl: '/',
outputDir: 'dist',
assetsDir: 'static',
Menu