Webpack package adds the specified path in front of the path

now the root path of the packaged project is / but the project is in a folder, so you need to add a layer / filename/ in front of the path of the packaged file to access it. How should I do this?

Aug.31,2021

index.js
build: {

under the config file
// Template for index.html
index: path.resolve(__dirname, '../dist/index.html'),

// Paths
assetsRoot: path.resolve(__dirname, '../dist'),
assetsSubDirectory: 'static',
assetsPublicPath: '/file/',  // 
Menu