How does VueCli3.0 set up the packaged files to be placed in the static directory?

all the files packaged by the new version of VueCli3.0 are scattered in the root directory. It is very troublesome to make rules such as server pseudo-static. It can be packaged into a static directory as before. Has anyone been successful?

Mar.17,2021

the latest update has solved this problem

module.exports = {
  assetsDir: "static"
};

I have found a solution to this problem. It's very simple. All the files under the
public directory will be copied to the root directory after compilation. If we want to compile the files under this folder and put them under static, we just need to put all the files under public under the public/static folder. After compilation, we will put all static files under the static folder.


vue.config.js

module.exports = {
    outputDir: 'static'
}

but I remember that the default setting should be to type uniformly under the dist folder instead of the

scattered in the root directory.
Menu